[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573008-105":53,"doc-detail-573008-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","cleanor-regex-cheat-sheet-tokens-quantifiers-and-flags-reference","Cleanor Regex Cheat Sheet - Tokens, Quantifiers and Flags - Reference","","Cleanor Regex Cheat Sheet summarizes practical regular expression syntax for matching patterns in text, aligned with JavaScript, Python, PCRE, and most regex engines. It lists common regex tokens such as character classes (× digit, word, whitespace), anchors (^, $), word boundaries, capturing and non-capturing groups, alternation, backreferences, and lookahead/lookbehind constructs. The sheet also covers quantifiers (*, +, ?, {n}, {n,}, {n,m}) and engine flags like global (g), case-insensitive (i), and multiline (m).",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":51,"@type":70,"position":76},"https://docshare.wps.com/template/general/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/cleanor-regex-cheat-sheet-tokens-quantifiers-and-flags-reference/573008/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/cleanor-regex-cheat-sheet-tokens-quantifiers-and-flags-reference/573008.png","ImageObject",442,249,{"name":88,"@type":89},"aboduw","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-19","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"Which regex engines does this cheat sheet target?","Question",{"text":109,"@type":110},"It notes compatibility with JavaScript, Python, PCRE, and most regex engines.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"What quantifiers are included for repetition control?",{"text":114,"@type":110},"It lists *, +, ?, and the forms {n}, {n,}, and {n,m} to match 0-or-more, 1-or-more, optional, and fixed/ranged counts.",{"name":116,"@type":107,"acceptedAnswer":117},"What do the flags g, i, and m mean?",{"text":118,"@type":110},"g finds all matches globally, i enables case-insensitive matching, and m enables multiline mode where ^ and $ apply per line.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},573008,1792118878,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":50,"category_name":51,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":9,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":4},3985747862266,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Cleanor Regex Cheat Sheet  \nRegular expression tokens, quantiﬁers and ﬂags  \n\n| Regular expressions match patterns in text. This is the common syntax shared by JavaScript, Python, PCRE and most engines.\u003Cbr>REGEX TOKENS\u003Cbr>TOKEN MATCHES |  |\n| --- | --- |\n| . | Any single character except newline |\n| \\d | A digit (0-9) |\n| \\D | A non-digit |\n| \\w | A word character (letter, digit, underscore) |\n| \\W | A non-word character |\n| \\ s | Any whitespace (space, tab, newline) |\n| \\S | Any non-whitespace |\n| ^ | Start of the string / line |\n| $ | End of the string / line |\n| \\ b | A word boundary |\n| \\B | Not a word boundary |\n| * | 0 or more of the previous |\n| + | 1 or more of the previous |\n| ? | 0 or 1 of the previous (optional) |\n| { n } | Exactly n of the previous |\n| { n , } | n or more of the previous |\n| { n ,m } | Between n and m of the previous |\n| [abc] | Any one of a, b or c |\n| [^abc] | Any character except a, b or c |\n| [a-z] | Any character in the range a to z |\n| (…) | A capturing group |\n| ( ?:…) | A non-capturing group |\n| a | b | a or b (alternation) |\n| \\ 1 | Backreference to group 1 |\n| ( ?=…) | Lookahead: followed by … |\n| ( ?!…) | Negative lookahead: not followed by … |\n| ( ?\u003C=…) | Lookbehind: preceded by … |\n| \\ . | A literal dot (escape a special char) |\n| flag g | Global: ﬁnd all matches |\n| flag i | Case-insensitive |\n| flag m | Multiline: ^ and $ match each line |\n\nCleanor · free reference · [https://cleanor.app/blog/regex-cheat-sheet-reference](https://cleanor.app/blog/regex-cheat-sheet-reference) [cleanor.app](cleanor.app)","cbCais3mcpRGaTCi","https://ap.wps.com/l/cbCais3mcpRGaTCi","pdf",53629,"English","# Regex Tokens\n## Character classes, anchors, boundaries\n## Groups, alternation, backreferences, lookaround\n# Quantifiers and Flags\n## Quantifiers: *, +, ?, {n}\n## Flags: g, i, m","[{\"question\":\"Which regex engines does this cheat sheet target?\",\"answer\":\"It notes compatibility with JavaScript, Python, PCRE, and most regex engines.\"},{\"question\":\"What quantifiers are included for repetition control?\",\"answer\":\"It lists *, +, ?, and the forms {n}, {n,}, and {n,m} to match 0-or-more, 1-or-more, optional, and fixed/ranged counts.\"},{\"question\":\"What do the flags g, i, and m mean?\",\"answer\":\"g finds all matches globally, i enables case-insensitive matching, and m enables multiline mode where ^ and $ apply per line.\"}]","Cleanor Regex Cheat Sheet - Tokens, Quantifiers and Flags - Reference | PDF",1791930617]