Archive for 'REGEX' Category
Remembering Regex Patterns
27 September 2007It’s often useful to remember patterns that have been matched so that they can be used again. It just so happens that anything matched in parentheses gets remembered in the variables $1,…,$9. These strings can also be used in the same regular expression (or substitution) by using the special RE codes \1,…,\9. For example
$_ = […]
Common Regex’s
8 September 2006Sample Regular Expressions
Reference link here
Below, you will find many example patterns that you can use for and adapt to your own purposes. Key techniques used in crafting each regex are explained, with links to the corresponding pages in the tutorial where these concepts and techniques are explained in great detail.
If you are new to regular […]