XML technologies / Regular expressions / How regex engines work
(Excerpt from "Regular expressions" by Jeffrey E. F. Friedl)
Features and dialects began with an analogy between cars and regular expressions. It mainly covered regex dialects, supported features and other information that might appear in a glossy regex brochure. This chapter continues the analogy by examining the engine and how it works: the regex engine without which nothing happens.
Why should you understand the engine? You will encounter different types of regex engines. The most common type, used by Perl, Tcl, Python, the .NET languages, Ruby, PHP, and every Java package I know, works in a way that makes how you write an expression matter. You can control whether a match is found, where it occurs in the string, and how quickly it is found. If these things matter to you, read on.
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