XML technologies / Regular expressions / Features and dialects / Guide to the advanced chapters

(Excerpt from "Regular expressions" by Jeffrey E. F. Friedl)

You have learned about metacharacters, dialects and syntax. It is time to explore the details and reach the heart of the matter, beginning with How regex engines work. There are different ways to build a regex engine. The choice affects whether a regex matches, which string it finds, and how long the engine takes. We will examine all the details. Understanding the engine also makes complex expressions easier to write. In Practical regex techniques, longer practical examples deepen this understanding.

This brings us to The art of writing regular expressions. Knowing the regex engine’s internals lets you choose the right formulation for a problem and exploit its capabilities fully. This chapter also exposes pitfalls in familiar dialects that can, conversely, be turned to your advantage.

These three chapters form the book’s core. The first three prepared the way, and the final chapters apply the insights gained. The material is not always easy, but I have carefully avoided formulas and mathematical language that many readers find off-putting. As with any new material, understanding the concepts takes time.

  

 

 

 

German edition copyright © 2008 by O’Reilly Verlag GmbH & Co. KG
You may print the online version for private use.
Otherwise, this chapter from "Reguläre Ausdrücke" is subject to the same terms as the bound edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, storage and processing in electronic systems.

O’Reilly Verlag GmbH & Co. KG, Balthasarstr. 81, 50670 Köln

back to top