[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-701031-105":59,"doc-detail-701031-en":130,"doc-similar-701031":234},{"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":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","regular-expressions-the-complete-tutorial","Regular Expressions: The Complete Tutorial","","Comprehensive tutorial on regular expressions by Jan Goyvaerts, covering both the fundamentals and advanced regex capabilities. Guides readers through literal characters, character classes, anchors, word boundaries, alternation, optional items, repetition, grouping, named capturing groups, Unicode regex, and matching modes. Explores quantifier behavior, atomic grouping, lookahead and lookbehind assertions, conditional logic, and practical pattern tasks such as validating email addresses, dates, and floating-point numbers.",{"@graph":69,"@context":122},[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-the-complete-tutorial/701031/",{"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-the-complete-tutorial/701031.png","ImageObject",300,407,{"name":92,"@type":93},"Himbo","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What topics are covered in the tutorial portion of the book?","Question",{"text":112,"@type":113},"The tutorial covers regex basics and internals, literal characters, character classes, anchors, word boundaries, alternation, optional items, repetition, grouping, named capturing groups, Unicode regex, and different matching modes.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the book handle advanced regex features?",{"text":117,"@type":113},"It explains possessive quantifiers, atomic grouping, lookahead and lookbehind zero-width assertions, conditional expressions, and matching modes, including advanced constructs like XML schema character classes and POSIX bracket expressions.",{"name":119,"@type":110,"acceptedAnswer":120},"What practical example tasks does the book include?",{"text":121,"@type":113},"Examples include sample regular expressions plus real-world pattern matching such as floating-point numbers, email address validation, valid date matching, matching whole lines of text, and deleting duplicate lines from a file.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},701031,1794522972,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":46,"preview_urls":145},687197100911,"https://ap-avatar.wpscdn.com/avatar/a000239b6f1da00475?x-image-process=image/resize,m_fixed,w_180,h_180&k=1785132997149421697","Regular Expressions  \nThe Complete Tutorial  \nJanGoyvaerts  \nRegular Expressions: The Complete Tutorial  \nJan Goyvaerts  \nCopyright © 2006, 2007 Jan Goyvaerts. All rights reserved.  \nLast updated July 2007.  \nNo part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the author.  \nThis book is published exclusively at [http://www.regular-expressions.info/print.html](http://www.regular-expressions.info/print.html)  \nEvery effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information is provided on an “as is” basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book.  \ni  \nTable of Contents  \nTutorial................................................................................................................ 1  \n1. Regular Expression Tutorial ......................................................................................................................................... 3  \n2. Literal Characters............................................................................................................................................................ 5  \n3. First Look at How a Regex Engine Works Internally .............................................................................................. 7  \n4. Character Classes or Character Sets............................................................................................................................. 9  \n5. The Dot Matches (Almost) Any Character .............................................................................................................. 13  \n6. Start of String and End of String Anchors............................................................................................................... 15  \n7. Word Boundaries.......................................................................................................................................................... 18  \n8. Alternation with The Vertical Bar or Pipe Symbol ................................................................................................. 21  \n9. Optional Items .............................................................................................................................................................. 23  \n10. Repetition with Star and Plus ................................................................................................................................... 24  \n11. Use Round Brackets for Grouping.......................................................................................................................... 27  \n12. Named Capturing Groups ........................................................................................................................................ 31  \n13. Unicode Regular Expressions................................................................................................................................... 33  \n14. Regex Matching Modes ............................................................................................................................................. 42  \n15. Possessive Quantifiers ............................................................................................................................................... 44  \n16. Atomic Grouping ....................................................................................................................................................... 47  \n17. Lookahead and Lookbehind Zero-Width Assertions........................................................................................... 49  \n18. Testing The Same Part of a String for More Than One Requirement .........","cbCaivNW9BE8UgER","https://ap.wps.com/l/cbCaivNW9BE8UgER","pdf",942093,197,"English","# Tutorial\n## 1. Regular Expression Tutorial\n## 2. Literal Characters\n## 3. First Look at How a Regex Engine Works Internally\n## 4. Character Classes or Character Sets\n## 5. The Dot Matches (Almost) Any Character\n## 6. Start of String and End of String Anchors\n## 7. Word Boundaries\n## 8. Alternation with The Vertical Bar or Pipe Symbol\n## 9. Optional Items\n## 10. Repetition with Star and Plus\n## 11. Use Round Brackets for Grouping\n## 12. Named Capturing Groups\n## 13. Unicode Regular Expressions\n## 14. Regex Matching Modes\n## 15. Possessive Quantifiers\n## 16. Atomic Grouping\n## 17. Lookahead and Lookbehind Zero-Width Assertions\n## 18. Testing The Same Part of a String for More Than One Requirement\n## 19. Continuing at The End of The Previous Match\n## 20. If-Then-Else Conditionals in Regular Expressions\n## 21. XML Schema Character Classes\n## 22. POSIX Bracket Expressions\n## 23. Adding Comments to Regular Expressions\n## 24. Free-Spacing Regular Expressions\n# Examples\n## 1. Sample Regular Expressions\n## 2. Matching Floating Point Numbers with a Regular Expression\n## 3. How to Find or Validate an Email Address\n## 4. Matching a Valid Date\n## 5. Matching Whole Lines of Text\n## 6. Deleting Duplicate Lines From a File","[{\"question\":\"What topics are covered in the tutorial portion of the book?\",\"answer\":\"The tutorial covers regex basics and internals, literal characters, character classes, anchors, word boundaries, alternation, optional items, repetition, grouping, named capturing groups, Unicode regex, and different matching modes.\"},{\"question\":\"How does the book handle advanced regex features?\",\"answer\":\"It explains possessive quantifiers, atomic grouping, lookahead and lookbehind zero-width assertions, conditional expressions, and matching modes, including advanced constructs like XML schema character classes and POSIX bracket expressions.\"},{\"question\":\"What practical example tasks does the book include?\",\"answer\":\"Examples include sample regular expressions plus real-world pattern matching such as floating-point numbers, email address validation, valid date matching, matching whole lines of text, and deleting duplicate lines from a file.\"}]","Regular Expressions: The Complete Tutorial | PDF",496,[146,150,154,158,162,166,170,174,178,182,186,191,196,201,206,211,216,221,226,230],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/52fda568fa92825b4fd18c900a65291c.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3ea4940596a41c7ae2dacdb7b9d9cdd7.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/705106dc8b8eebe5b19293744d873a93.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6bee39605ad09e93e5331d5a7f7c036a.webp",980,1268,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/0eb1bafe05c04a43fbce3e87b897fb39.webp",979,1267,{"page_no":29,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/092b8099e46fa0de2d84aaca153cb8ac.webp",978,1265,{"page_no":34,"url":171,"width":172,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/62f6527fc210f3354479bb02dff60b43.webp",977,1264,{"page_no":39,"url":175,"width":176,"height":177},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/cdf7943de113052cd9ae8fabe90ffc98.webp",976,1263,{"page_no":44,"url":179,"width":180,"height":181},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/a3326ebcec332b7739f24a3e4270856c.webp",975,1261,{"page_no":52,"url":183,"width":184,"height":185},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/9666ff6d9262910e7a5eb221b53f0039.webp",974,1260,{"page_no":187,"url":188,"width":189,"height":190},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/70617bb7c9b7aae77ecd4087eaf3240b.webp",973,1259,{"page_no":192,"url":193,"width":194,"height":195},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d79e8be87f9629946e3be22b68b9c14c.webp",972,1257,{"page_no":197,"url":198,"width":199,"height":200},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/261f1bd08444fd830f2c58e4b1858f8f.webp",971,1256,{"page_no":202,"url":203,"width":204,"height":205},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ab136f0d6d5ef81a7ee78af2d5456560.webp",970,1255,{"page_no":207,"url":208,"width":209,"height":210},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/34a5a9f475c71745897ee8b3f8adea63.webp",969,1254,{"page_no":212,"url":213,"width":214,"height":215},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/bfcb22cc99e7b6480d1be8b063029fa6.webp",968,1252,{"page_no":217,"url":218,"width":219,"height":220},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/58bfa0ac4a655264d726c2f27a970289.webp",967,1251,{"page_no":222,"url":223,"width":224,"height":225},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/1122d675c9486d436fc6869e50990700.webp",966,1250,{"page_no":56,"url":227,"width":228,"height":229},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c8c69a2328839b332c02b444604a67b0.webp",965,1248,{"page_no":46,"url":231,"width":232,"height":233},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/8ed5dd209b9741293d22827f15b3070e.webp",964,1247,{"list":235,"token":66},[236,242,248,255,262,269,276,283,290,297],{"doc_id":237,"doc_title":238,"file_type":137,"home_preview_img_url":239,"slug":240,"view_count":19,"category_name":30,"create_tm":241},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=1796111999&Signature=O%2B8%2FjjHGraXGPeDUZfbkSlgwhcE%3D","mastering-regular-expressions-third-edition",1794522977,{"doc_id":243,"doc_title":244,"file_type":137,"home_preview_img_url":245,"slug":246,"view_count":81,"category_name":30,"create_tm":247},701030,"Regular Expressions - Quick Reference Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011576998/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=bXfwKbGZ6lz5B8FDWUiPepqAcA0%3D","regular-expressions-quick-reference-guide",1794522969,{"doc_id":249,"doc_title":250,"file_type":137,"home_preview_img_url":251,"slug":252,"view_count":253,"category_name":30,"create_tm":254},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=IsjQE1Wfge2RQ0HOBgUvCamXdK4%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":256,"doc_title":257,"file_type":137,"home_preview_img_url":258,"slug":259,"view_count":260,"category_name":30,"create_tm":261},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=2KP8MxIgWiA%2FGLyvfrU7Y2qcsFU%3D","xnx-universal-transmitter-installation-manual",855,1776135954,{"doc_id":263,"doc_title":264,"file_type":137,"home_preview_img_url":265,"slug":266,"view_count":267,"category_name":30,"create_tm":268},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=eCUky7tEkQThHnvITUZPBIFqcl0%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":270,"doc_title":271,"file_type":137,"home_preview_img_url":272,"slug":273,"view_count":274,"category_name":30,"create_tm":275},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=XDehW%2FiYcuhBa%2BEzOCyDA%2B97zuM%3D","free-fire-proxy-server",565,1776135932,{"doc_id":277,"doc_title":278,"file_type":137,"home_preview_img_url":279,"slug":280,"view_count":281,"category_name":30,"create_tm":282},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=1b1Vd%2F4LUhW7hCfuAbUCBNqOOW4%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":284,"doc_title":285,"file_type":137,"home_preview_img_url":286,"slug":287,"view_count":288,"category_name":30,"create_tm":289},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=uweqDw71CuRZZ4SIHHicb3NalXE%3D","tiktok-content-tricks-from-0-to-fyp",489,1776338393,{"doc_id":291,"doc_title":292,"file_type":137,"home_preview_img_url":293,"slug":294,"view_count":295,"category_name":30,"create_tm":296},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=p6CaHvb0GdEn1Sc%2BtPbYvmMoCy0%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169,{"doc_id":298,"doc_title":299,"file_type":137,"home_preview_img_url":300,"slug":301,"view_count":302,"category_name":30,"create_tm":303},14249,"EW 101: A First Course in Electronic Warfare","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229699258216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=drgq61YdkmicCxgVwvXCmisBQLs%3D","ew-101-a-first-course-in-electronic-warfare",438,1776558348]