[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573007-105":53,"doc-detail-573007-en":130},{"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":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","intro-to-regex-regex-reference-sheet-core-regular-expressions","Intro to Regex - Regex Reference Sheet - Core Regular Expressions","","A concise reference sheet summarizing core regular-expression building blocks and how to use them effectively. It covers quantifiers like +, ?, and * for repetition control, anchors (^ and $) for line-bound matching, and escaping rules for special characters requiring a leading backslash. It also explains character classes using brackets and negation, special tokens for any character and whitespace (., \\n, \\t), and back-referencing in replacements using numbered capture groups.",{"@graph":63,"@context":122},[64,80,101],{"@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":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/intro-to-regex-regex-reference-sheet-core-regular-expressions/573007/",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/intro-to-regex-regex-reference-sheet-core-regular-expressions/573007.png","ImageObject",442,249,{"name":88,"@type":89},"sagouaw","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-19","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":79},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114,118],{"name":105,"@type":106,"acceptedAnswer":107},"What quantifiers are explained in this sheet and what do they mean?","Question",{"text":108,"@type":109},"It covers + (one or more), ? (one or none), and * (zero or more) for repetition of the preceding element.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"How do anchors work for matching at line boundaries?",{"text":113,"@type":109},"Use ^ to match the beginning of the line and $ to match the end of the line.",{"name":115,"@type":106,"acceptedAnswer":116},"How can you reuse captured text in a replacement string?",{"text":117,"@type":109},"Wrap the parts you want to remember in parentheses, then use \\n or $n in the replacement where n selects the numbered capture group (e.g., \\1 or $1).",{"name":119,"@type":106,"acceptedAnswer":120},"What is the purpose of character classes and how do you negate them?",{"text":121,"@type":109},"Characters inside [] represent any one of those characters (e.g., [cat]). Add an initial ^ inside the class to negate it (e.g., [^;] means anything not a semicolon).","https://schema.org",{"og:url":78,"og:type":124,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":126,"canonical":78},"index,follow",{"doc_id":128,"site_id":56},573007,1792019100,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":88,"user_avatar":133,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":79,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":9,"language":139,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":61,"update_tm":143,"read_time":4},3985747862151,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Core regular expressions reference sheet  \nQuantifiers  \n+ one or more of the preceding? one or none of the preceding * zero or more of the preceding  \nAnchors  \n^ beginning of the line $ end of the line  \nEscaping  \nThe following special characters need \\ to make them literal  \n$^.[]+?*\\ Sometimes also: & ( ) {} |  \nCharacter classes  \nAnything within [] means ‘any one of  \nthese’, eg [cat] = ‘c’ or ‘a’ or ‘t’[a-z] = any letter [0-9] = any number Negate with an initial ^, eg [^;] =‘anything not a semi-colon’  \nSpecial characters  \n. any character  \n\\n line break  \n\\t tab  \nBack referencing in replacements  \nThis is the main area of variety between software  \nEither () or \\(\\) around each part of the find expression you want to remember  \nThen \\n or $n to get that value in the replacement, with n being the set of brackets in the sequence: the first is \\1 or $1 etc.  \nFurther reading and resources  \nMastering Regular Expressions, Jeffrey Friedl, O’Reilly  \n[http://pythex.org/](http://pythex.org/ -enter)[ -enter](http://pythex.org/ -enter) some text and text a regex find (Python syntax)  \n[https://www.myregextester.com/](https://www.myregextester.com/ -do online find/replace)[ -do online find/replace](https://www.myregextester.com/ -do online find/replace)  \n[http://regexper.com/](http://regexper.com/ -display a regex)[ -display a regex](http://regexper.com/ -display a regex) as a railway diagram  \n[https://regex.alf.nu/](https://regex.alf.nu/ -regex golf)[ -regex golf](https://regex.alf.nu/ -regex golf), if you’re really keen","cbCaioxKcPYnggpc","https://ap.wps.com/l/cbCaioxKcPYnggpc","pdf",306992,"English","# Quantifiers\n# Anchors\n# Escaping\n# Character Classes\n# Special Characters\n# Back-Referencing in Replacements\n# Further Reading and Resources","[{\"question\":\"What quantifiers are explained in this sheet and what do they mean?\",\"answer\":\"It covers + (one or more), ? (one or none), and * (zero or more) for repetition of the preceding element.\"},{\"question\":\"How do anchors work for matching at line boundaries?\",\"answer\":\"Use ^ to match the beginning of the line and $ to match the end of the line.\"},{\"question\":\"How can you reuse captured text in a replacement string?\",\"answer\":\"Wrap the parts you want to remember in parentheses, then use \\\\n or $n in the replacement where n selects the numbered capture group (e.g., \\\\1 or $1).\"},{\"question\":\"What is the purpose of character classes and how do you negate them?\",\"answer\":\"Characters inside [] represent any one of those characters (e.g., [cat]). Add an initial ^ inside the class to negate it (e.g., [^;] means anything not a semicolon).\"}]","Intro to Regex - Regex Reference Sheet - Core Regular Expressions | PDF",1791930616]