[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-701030-105":59,"doc-detail-701030-en":134,"doc-similar-701030":156},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":127,"head_meta":129,"extra_data":131,"updated_unix":133},105,"en","regular-expressions-quick-reference-guide","Regular Expressions - Quick Reference Guide","","Regular Expressions: Quick Reference Guide compiles common regex building blocks into an accessible reference. It covers special metacharacters and how to escape them, whitespace and digit-related character classes, anchors for string and line boundaries, and practical quantifiers including greedy vs ungreedy forms. The guide also summarizes grouping constructs, character ranges, nth-group replacement syntax, and shows HTML/PCF-oriented example patterns with find/replace and expected results, including email and phone number normalization.",{"@graph":69,"@context":126},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/regular-expressions-quick-reference-guide/701030/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/regular-expressions-quick-reference-guide/701030.png","ImageObject",300,407,{"name":92,"@type":93},"Logic","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-17","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118,122],{"name":109,"@type":110,"acceptedAnswer":111},"What are the common regex special metacharacters and how do you escape them?","Question",{"text":112,"@type":113},"The guide lists metacharacters such as . ^ $ * + ? \\ [ ( ) | { and notes to escape them with a backslash \\.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do character classes like \\s, \\d, and \\w work?",{"text":117,"@type":113},"It shows shorthand forms and their meanings: \\s matches whitespace like [ \\t\\r\\n\\f], \\S is not whitespace, \\d matches digits [0-9], \\w matches word characters [A-Za-z0-9_], and \\W is not word characters.",{"name":119,"@type":110,"acceptedAnswer":120},"How are quantifiers and groups used together in practical patterns?",{"text":121,"@type":113},"Quantifiers include ? * + and explicit counts like {3}, {3,}, or {3,5}, and the guide mentions adding ? to make a quantifier ungreedy. Grouping is covered with capture groups ( ) and passive groups (?:…), plus ranges like [a-t] or [A-T].",{"name":123,"@type":110,"acceptedAnswer":124},"How does the guide perform string replacement and extract nth groups?",{"text":125,"@type":113},"It uses replacement references like $n for the nth group and shows examples of replacing parts of matches, including $1 and $2 extracted from grouped patterns, producing standardized outputs such as normalized phone numbers.","https://schema.org",{"og:url":83,"og:type":128,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":130,"canonical":83},"index,follow",{"doc_id":132,"site_id":62},701030,1794522969,{"code":4,"msg":5,"data":135},{"doc_id":132,"user_id":136,"nickname":92,"user_avatar":137,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":138,"file_id":139,"file_url":140,"file_type":141,"file_size":142,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":14,"language":143,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":144,"faqs":145,"seo_title":146,"seo_description":67,"update_tm":133,"read_time":24,"preview_page_count":14,"preview_urls":147},1099513958762,"https://ap-avatar.wpscdn.com/avatar/1000023916a998db790?x-image-process=image/resize,m_fixed,w_180,h_180&k=1784791008015729253","Regular Expressions: Quick Reference Guide  \n\n| Special Metacharacters |\n| --- |\n| . ^ $ * + ? \\ [ ( ) | { |\n| Escape with \\ |\n\n\n| Special Characters |\n| --- |\n| \\n New line |\n| \\r Carriage return |\n| \\t Tab |\n| \\f Form feed |\n\n\n| Character Classes |\n| --- |\n| \\s White space [ \\t\\r\\n\\f] |\n| \\S Not white space |\n| \\d Digit [0-9] |\n| \\D Not digit |\n| \\w Word character [A-Za-z0-9_] |\n| \\W Not word character |\n\n\n| Anchors |\n| --- |\n| ^ Start of string, or start of line in multi-line pattern |\n| $ End of string, or end of line in multiline pattern |\n\n\n| Quantifiers |\n| --- |\n| ? 0 or 1 |\n| * 0 or more |\n| + 1 or more |\n| {3} Exactly 3 |\n| {3,} 3 or More |\n| {3,5} 3, 4, or 5 |\n| +? Add ‘?’ to a quantifier to make it ungreedy. |\n\n\n| Groups and Ranges |\n| --- |\n| . Any character except new line |\n| a|b a or b |\n| (   ) Capture Group |\n| (?:…) Passive Group (not captured) |\n| [abc] Range (a or b or c) |\n| [^abc] Not (a or b or c) |\n| [a-t] Lowercase letter from a to t |\n| [A-T] Uppercase letter from A to T |\n| [0-7] Digit from 0 to 7 |\n\n\n| String Replacement |\n| --- |\n| $n Nth group |\n| $2 \"xyz\" in (abc(xyz)) |\n| $1 \"xyz\" in (?:abc(xyz)) |\n\nHTML / PCF Examples  \n\n| Find the President’s Name |  |\n| --- | --- |\n| Source | John R . Smith or John Richard Smith or John Smith |\n| Find | John\\s(R\\ .? |Richard)?\\s?Smith |\n\n\n| Find College Email Addresses |\n| --- |\n| Source [John.R.Smith@college.edu](John.R.Smith@college.edu) |\n| Find  [a-zA-Z0-9_ \\ - . ]+@college\\ .edu |\n\n\n| Convert Phone Numbers into a Standard Format |\n| --- |\n| Source  (555)345-2353 or 555 .345 .COOL |\n| Find \\ (? ([0-9]{3}) ? [) .\\ - ]+ ([0-9]{3}) [) .\\ - ]([0-9A-Z]{4}) |\n| Replace  $1- $2- $3 |\n| Result 555-345-2353 or 555-345-COOL |\n\n\n| Change Group Access for a Specific Parameter |  |\n| --- | --- |\n| Source | \u003Cparameter name=\"breadcrumb\" type=\"text\"\u003Cbr>\u003Cbr>group=\"Everyone\" prompt=\"Breadcrumb\" alt=\"Please enter the breadcrumb text.\">Admissions\u003C/parameter> |\n| Find  (\u003Cparameter [^>]+name=\"breadcrumb\" [^>]+)group=\"[^\"]+\" |  |\n| Replace  $1group=\"Administrators\" |  |\n| Result | \u003Cparameter name=\"breadcrumb\" type=\"text\"\u003Cbr>\u003Cbr>group=\"Administrators\" prompt=\"Breadcrumb\" alt=\"Please enter the breadcrumb text.\">Admissions\u003C/parameter> |","cbCailyneKoC8iav","https://ap.wps.com/l/cbCailyneKoC8iav","pdf",356860,"English","# Special Metacharacters\n# Character Classes\n# Anchors\n# Quantifiers\n# Groups and Ranges\n# String Replacement\n# HTML / PCF Examples","[{\"question\":\"What are the common regex special metacharacters and how do you escape them?\",\"answer\":\"The guide lists metacharacters such as . ^ $ * + ? \\\\ [ ( ) | { and notes to escape them with a backslash \\\\.\"},{\"question\":\"How do character classes like \\\\s, \\\\d, and \\\\w work?\",\"answer\":\"It shows shorthand forms and their meanings: \\\\s matches whitespace like [ \\\\t\\\\r\\\\n\\\\f], \\\\S is not whitespace, \\\\d matches digits [0-9], \\\\w matches word characters [A-Za-z0-9_], and \\\\W is not word characters.\"},{\"question\":\"How are quantifiers and groups used together in practical patterns?\",\"answer\":\"Quantifiers include ? * + and explicit counts like {3}, {3,}, or {3,5}, and the guide mentions adding ? to make a quantifier ungreedy. Grouping is covered with capture groups ( ) and passive groups (?:…), plus ranges like [a-t] or [A-T].\"},{\"question\":\"How does the guide perform string replacement and extract nth groups?\",\"answer\":\"It uses replacement references like $n for the nth group and shows examples of replacing parts of matches, including $1 and $2 extracted from grouped patterns, producing standardized outputs such as normalized phone numbers.\"}]","Regular Expressions - Quick Reference Guide | PDF",[148,152],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/a2492d41aec359769b55eddf6e18a7ef.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/2fbb3f3fe41a13a287188157ffcb36d9.webp",982,1270,{"list":157,"token":66},[158,164,170,176,182,188,194,201,207,213],{"doc_id":159,"doc_title":160,"file_type":141,"home_preview_img_url":161,"slug":162,"view_count":14,"category_name":30,"create_tm":163},726273,"Regular Expressions - Intro to Patterns and Syntax","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028539473/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=n%2BH6Drr5i8RzWd48BDzJ7qrvop0%3D","regular-expressions-intro-to-patterns-and-syntax",1795211900,{"doc_id":165,"doc_title":166,"file_type":141,"home_preview_img_url":167,"slug":168,"view_count":19,"category_name":30,"create_tm":169},701034,"Mastering Regular Expressions - Third Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012047369/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=b1C6ghdr9XTKRwsWsl90PPjIbv4%3D","mastering-regular-expressions-third-edition",1794522977,{"doc_id":171,"doc_title":172,"file_type":141,"home_preview_img_url":173,"slug":174,"view_count":19,"category_name":30,"create_tm":175},701037,"Regular Expressions - Chapter 11 - Python for Everybody","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012047384/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=paaiL44A0ggMmUBi5kpu9KPTeXo%3D","regular-expressions-chapter-11-python-for-everybody",1794522981,{"doc_id":177,"doc_title":178,"file_type":141,"home_preview_img_url":179,"slug":180,"view_count":81,"category_name":30,"create_tm":181},701031,"Regular Expressions: The Complete Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011577006/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=tPolbcJ8EbVrZWYT91FvTaxh9Dk%3D","regular-expressions-the-complete-tutorial",1794522972,{"doc_id":183,"doc_title":184,"file_type":141,"home_preview_img_url":185,"slug":186,"view_count":29,"category_name":30,"create_tm":187},672869,"Google HTML/CSS Style Guide - Formatting and style rules","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229989673248/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=lJjQsomTNEnWVVwS3jdfvGn9E10%3D","google-htmlcss-style-guide-formatting-and-style-rules",1793611799,{"doc_id":189,"doc_title":190,"file_type":141,"home_preview_img_url":191,"slug":192,"view_count":8,"category_name":30,"create_tm":193},759568,"YAML - Getting Started - Basic Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044201039/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=MG%2BdSOiNf3jFTN9I4U%2B0%2BTKGntQ%3D","yaml-getting-started-basic-tutorial",1795887875,{"doc_id":195,"doc_title":196,"file_type":141,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":30,"create_tm":200},491464,"HTML Cheat Sheet - A quick guide to HTML, CSS, and JavaScript basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928196033/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=LtEbaH8SS%2BbRjhzDfVfG8yqCFzg%3D","html-cheat-sheet-a-quick-guide-to-html-css-and-javascript-basics",21,1790849720,{"doc_id":202,"doc_title":203,"file_type":141,"home_preview_img_url":204,"slug":205,"view_count":19,"category_name":30,"create_tm":206},697998,"Markdown cheat sheet - guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010155625/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=75m%2B1vl7v06sizxNcPDQu2aUBvg%3D","markdown-cheat-sheet-guide",1794446932,{"doc_id":208,"doc_title":209,"file_type":141,"home_preview_img_url":210,"slug":211,"view_count":81,"category_name":30,"create_tm":212},697984,"HTML Tags list","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010150467/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=0mNJ33znguIGFcSlXfGslQyhG8M%3D","html-tags-list",1794446726,{"doc_id":214,"doc_title":215,"file_type":141,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":30,"create_tm":219},344715,"HTML Cheatsheet - Basic Tags, Links, Formatting, Lists, Forms, Tables","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910851845/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=84J4ktBBmdEsEMQJSHHqzk7Dqvs%3D","html-cheatsheet-basic-tags-links-formatting-lists-forms-tables",17,1790055036]