Ad

Wednesday, December 17, 2008

Regular Expressions




A regular expression, or regex for short, is a pattern describing a certain amount of text. On this website, regular expressions are highlighted in red as regex.

This first example is actually a perfectly valid regex. It is the most basic pattern, simply matching the literal text regex. Matches are highlighted in blue on this site.

I will use the term "string" to indicate the text that I am applying the regular expression to. I will highlight them in green.

http://www.regular-expressions.info/quickstart.html

http://www.regular-expressions.info/reference.html


No comments: