Regular Expressions

In doing some of my own projects, I’ve found it useful to match chunks of text using regular expressions, as opposed to doing a long routine of string position and substring calls. Regular expressions allow you to define a pattern to look for, rather than a specific string. When the pattern matches, you can either pull in the match itself, or the position of the match. Here are a few incredibly useful links for learning how to begin mastering this powerful programming tool:

Starmerj’s Perl RegEx Crib Sheet
Regular Expressions in PHP
JavaScript Regular Expression Tester
Regular-Expressions.info – Regex Tutorial, Examples and Reference

Leave a Reply