Summary
Having a good grasp of regular expressions is a necessary prerequisite to working with mod_rewrite. All too often, people try to build regular expressions by the brute-force method, trying various different combinations at random until something seems to mostly work. This results in expressions that are inefficient and fragile, as well as being a great waste of time and the cause of much frustration.
Keep a bookmark in this chapter, and refer back to it when you’re trying to figure out what a particular regex is doing.
Other recommended reference sources include the Perl regular expression documentation, which you can find online at http://perldoc.perl.org/perlre.html or by typing perldoc perlre at your command line, and the PCRE documentation, which you can find online at http://pcre.org/pcre.txt.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Rich Bowen
About this chapter
Cite this chapter
(2006). Regular Expressions. In: The Definitive Guide to Apache mod_rewrite. Apress. https://doi.org/10.1007/978-1-4302-0122-9_2
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0122-9_2
Publisher Name: Apress
Print ISBN: 978-1-59059-561-9
Online ISBN: 978-1-4302-0122-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books