Get best price on Unlocked Moto G Power | ||||||||||||
|
||||||||||||
|
Perl: Regular ExpressionsOverview of Regular Expressions
Regular expression is abbreviated as regexp or regex. Plural forms are regexps, regexes, or regexen. Regular expressions are a powerful way to match strings, much easier than using the 'indexOf' and 'substitute' function found in most programming languages. There are numerous things that can be done with regular expressions, some examples:
For more detail about regular expressions: Regular expressions can look and be confusing. I tend to write a test script with just my regexp, just to see if it works properly, and I usually end up rewriting it numerous times. If you want to learn more about Regular Expressions, see the Perl documentation and the links at the bottom of this page. I do not recommend the book Mastering Regular Expressions, from O'Reilly. I had the first edition. Perhaps the second edition is better. Nonetheless, I found it to be the only bad O'Reilly book I have. It is confusing, and is not written with the idea of explaining how to write working regular expressions that you can use. The book seems to be the story of regular expressions and how to implement them on a lower level, such as in a programming language. I learned more about regular expressions from O'Reilly's Learning Perl and Perl Cookbook. Related Links: Perl Manual - Regular Expressions
|
privacy policy || © 1997-2016. astonishinc.com All Rights Reserved. |