skip to main content
Skip header Section
Mastering Regular ExpressionsAugust 2006
Publisher:
  • O'Reilly Media, Inc.
ISBN:978-0-596-52812-6
Published:01 August 2006
Skip Bibliometrics Section
Bibliometrics
Skip Abstract Section
Abstract

Regular expressions are an extremely powerful tool for manipulating text and data. They are now standard features in a wide range of languages and popular tools, including Perl, Python, Ruby, Java, VB.NET and C# (and any language using the .NET Framework), PHP, and MySQL. If you don't use regular expressions yet, you will discover in this book a whole new world of mastery over your data. If you already use them, you'll appreciate this book's unprecedented detail and breadth of coverage. If you think you know all you need to know about regular expressions, this book is a stunning eye-opener.As this book shows, a command of regular expressions is an invaluable skill. Regular expressions allow you to code complex and subtle text processing that you never imagined could be automated. Regular expressions can save you time and aggravation. They can be used to craft elegant solutions to a wide range of problems. Once you've mastered regular expressions, they'll become an invaluable part of your toolkit. You will wonder how you ever got by without them.Yet despite their wide availability, flexibility, and unparalleled power, regular expressions are frequently underutilized. Yet what is power in the hands of an expert can be fraught with peril for the unwary. Mastering Regular Expressions will help you navigate the minefield to becoming an expert and help you optimize your use of regular expressions.Mastering Regular Expressions, Third Edition, now includes a full chapter devoted to PHP and its powerful and expressive suite of regular expression functions, in addition to enhanced PHP coverage in the central "core" chapters. Furthermore, this edition has been updated throughout to reflect advances in other languages, including expanded in-depth coverage of Sun's java.util.regex package, which has emerged as the standard Java regex implementation.Topics include:A comparison of features among different versions of many languages and toolsHow the regular expression engine worksOptimization (major savings available here!)Matching just what you want, but not what you don't wantSections and chapters on individual languagesWritten in the lucid, entertaining tone that makes a complex, dry topic become crystal-clear to programmers, and sprinkled with solutions to complex real-world problems, Mastering Regular Expressions, Third Edition offers a wealth information that you can put to immediate use.Reviews of this new edition and the second edition: "There isn't a better (or more useful) book available on regular expressions." --Zak Greant, Managing Director, eZ Systems"A real tour-de-force of a book which not only covers the mechanics of regexes in extraordinary detail but also talks about efficiency and the use of regexes in Perl, Java, and .NET...If you use regular expressions as part of your professional work (even if you already have a good book on whatever language you're programming in) I would strongly recommend this book to you." --Dr. Chris Brown, Linux Format"The author does an outstanding job leading the reader from regex novice to master. The book is extremely easy to read and chock full of useful and relevant examples...Regular expressions are valuable tools that every developer should have in their toolbox. Mastering Regular Expressions is the definitive guide to the subject, and an outstanding resource that belongs on every programmer's bookshelf. Ten out of Ten Horseshoes." --Jason Menard, Java Ranch

Cited By

  1. Guimarães G, da Silva F, Queiroz A, Marcacini R, Faleiros T, Borges V and Garcia L (2024). DODFMiner, Neurocomputing, 568:C, Online publication date: 1-Feb-2024.
  2. Fleischmann P, Kim S, Koß T, Manea F, Nowotka D, Siemer S and Wiedenhöft M Matching Patterns with Variables Under Simon’s Congruence Reachability Problems, (155-170)
  3. Anderson J, Fainekos G, Hoxha B, Okamoto H and Prokhorov D Pattern Matching for Perception Streams Runtime Verification, (251-270)
  4. Roche V, Robert J and Salam H (2024). A holistic AI-based approach for pharmacovigilance optimization from patients behavior on social media, Artificial Intelligence in Medicine, 144:C, Online publication date: 1-Oct-2023.
  5. ACM
    Fadlallah H, Kilany R, Dhayne H, El Haddad R, Haque R, Taher Y and Jaber A (2023). BIGQA: Declarative Big Data Quality Assessment, Journal of Data and Information Quality, 15:3, (1-30), Online publication date: 30-Sep-2023.
  6. Hospodár M and Olejár V (2023). The cut operation in subclasses of convex languages, Theoretical Computer Science, 969:C, Online publication date: 21-Aug-2023.
  7. Gawrychowski P, Manea F and Siemer S Matching Patterns with Variables Under Edit Distance String Processing and Information Retrieval, (275-289)
  8. Flood M and Goodenough O (2022). Contract as automaton: representing a simple financial agreement in computational form, Artificial Intelligence and Law, 30:3, (391-416), Online publication date: 1-Sep-2022.
  9. ACM
    Barlas E, Du X and Davis J Exploiting input sanitization for regex denial of service Proceedings of the 44th International Conference on Software Engineering, (883-895)
  10. Fleischmann P, Haschke L, Manea F, Nowotka D, Tsida C and Wiedenbeck J Blocksequences of k-local Words SOFSEM 2021: Theory and Practice of Computer Science, (119-134)
  11. Manea F and Schmid M Matching Patterns with Variables Combinatorics on Words, (1-27)
  12. ACM
    Davis J, Michael IV L, Coghlan C, Servant F and Lee D Why aren’t regular expressions a lingua franca? an empirical study on the re-use and portability of regular expressions Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, (443-454)
  13. ACM
    Abba A and Hassan M Design and Implementation of a CSV Validation System Proceedings of the 3rd International Conference on Applications in Information Technology, (111-116)
  14. ACM
    Shen Y, Jiang Y, Xu C, Yu P, Ma X and Lu J ReScue: crafting regular expression DoS attacks Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, (225-235)
  15. Jaeger D, Graupner H, Pelchen C, Cheng F and Meinel C (2018). Fast Automated Processing and Evaluation of Identity Leaks, International Journal of Parallel Programming, 46:2, (441-470), Online publication date: 1-Apr-2018.
  16. Schmid M (2016). Characterising REGEX languages by regular languages equipped with factor-referencing, Information and Computation, 249:C, (1-17), Online publication date: 1-Aug-2016.
  17. (2016). Regular expressions for decoding of neural network outputs, Neural Networks, 79:C, (1-11), Online publication date: 1-Jul-2016.
  18. ACM
    Markovich R, Syi and Hamp G Elliptical lists in legislative texts Proceedings of the 15th International Conference on Artificial Intelligence and Law, (192-195)
  19. Martens W, Neven F and Vansummeren S SCULPT Proceedings of the 24th International Conference on World Wide Web, (702-720)
  20. ACM
    Fagin R, Kimelfeld B, Reiss F and Vansummeren S (2015). Document Spanners, Journal of the ACM, 62:2, (1-51), Online publication date: 6-May-2015.
  21. Naugler D (2015). Regular expressions in C++11/14, Journal of Computing Sciences in Colleges, 30:5, (81-81), Online publication date: 1-May-2015.
  22. ACM
    Bartoli A, De Lorenzo A, Medvet E and Tarlao F Playing regex golf with genetic programming Proceedings of the 2014 Annual Conference on Genetic and Evolutionary Computation, (1063-1070)
  23. ACM
    Fossum T PLCC Proceedings of the 45th ACM technical symposium on Computer science education, (561-566)
  24. ACM
    Herczeg Z Extending the PCRE Library with Static Backtracking Based Just-in-Time Compilation Support Proceedings of Annual IEEE/ACM International Symposium on Code Generation and Optimization, (306-315)
  25. ACM
    Herczeg Z Extending the PCRE Library with Static Backtracking Based Just-in-Time Compilation Support Proceedings of Annual IEEE/ACM International Symposium on Code Generation and Optimization, (306-315)
  26. Mazairac W and Beetz J (2013). BIMQL - An open query language for building information models, Advanced Engineering Informatics, 27:4, (444-456), Online publication date: 1-Oct-2013.
  27. ACM
    De Lorenzo A, Medvet E and Bartoli A Automatic string replace by examples Proceedings of the 15th annual conference on Genetic and evolutionary computation, (1253-1260)
  28. ACM
    Fagin R, Kimelfeld B, Reiss F and Vansummeren S Spanners Proceedings of the 32nd ACM SIGMOD-SIGACT-SIGAI symposium on Principles of database systems, (37-48)
  29. Shade E (2013). A pedagogical regular-expression engine, Journal of Computing Sciences in Colleges, 28:5, (160-167), Online publication date: 1-May-2013.
  30. Schmid M Inside the class of REGEX languages Proceedings of the 16th international conference on Developments in Language Theory, (73-84)
  31. ACM
    Orgaz G, R-Moreno M, Camacho D and Barrero D Clustering avatars behaviours from virtual worlds interactions Proceedings of the 4th International Workshop on Web Intelligence & Communities, (1-7)
  32. Paulheim H, Oberle D, Plendl R and Probst F An architecture for information exchange based on reference models Proceedings of the 4th international conference on Software Language Engineering, (160-179)
  33. ACM
    Al-Zaidy R, Fung B and Youssef A Towards discovering criminal communities from textual data Proceedings of the 2011 ACM Symposium on Applied Computing, (172-177)
  34. Reidenbach D and Schmid M A polynomial time match test for large classes of extended regular expressions Proceedings of the 15th international conference on Implementation and application of automata, (241-250)
  35. Namjoshi K and Narlikar G Robust and fast pattern matching for intrusion detection Proceedings of the 29th conference on Information communications, (740-748)
  36. ACM
    Nicolau H, Jorge J and Guerreiro T Blobby CHI '09 Extended Abstracts on Human Factors in Computing Systems, (3601-3606)
  37. ACM
    Becchi M and Crowley P Extending finite automata to efficiently match Perl-compatible regular expressions Proceedings of the 2008 ACM CoNEXT Conference, (1-12)
  38. ACM
    Thomo A and Venkatesh S Rewriting of visibly pushdown languages for xml data integration Proceedings of the 17th ACM conference on Information and knowledge management, (521-530)
  39. ACM
    Bonesana I, Paolieri M and Santambrogio M An adaptable FPGA-based system for regular expression matching Proceedings of the conference on Design, automation and test in Europe, (1262-1267)
  40. Kwon H and Hong K A user-controlled voiceXML application based on dynamic voice anchor and node Proceedings of the 2007 international conference on Frontiers of High Performance Computing and Networking, (265-272)
  41. Jaeger D, Azodi A, Cheng F and Meinel C Normalizing Security Events with a Hierarchical Knowledge Base Information Security Theory and Practice, (237-248)
Contributors
  • OMRON Corporation

Recommendations