Power Text search and replace
In computing, a regular expression is a string that is used to describe or match a set of strings, according to certain syntax rules. For example, the regular expression \bex can be used to describe (and search for) all of the instances of the string “ex” that occur at word breaks (signified by the \b). Thus in the phrase, “Texts for expert experimenters,” the regular expresssion \bex returens the “ex” in “expert” and “experimenters,” but not in “Texts” (because the “ex” occurs inside the word there and not at the word break). Regular expressions are used by many text editors and utilities to search and manipulate bodies of text based on certain patterns. Many programming languages support regular expressions for string manipulation. For example, Perl and Tcl have a powerful regular expression engine built directly into their syntax. The set of utilities (including the editor ed and the filter grep) provided by Unix distributions were the first to popularize the concept of regular expressions. “Regular expression” is often shortened in speech to regex, and in writing to regexp or regex (singular) or regexps, regexes, or regexen (plural).
Many modern computing systems provide wildcard characters in matching filenames from a file system. This is a core capability of many command-line shells and is known as globbing. Wildcards differ from regular expressions in that they can only express very restrictive forms of alternation.
source: Wikipedia:Regular_expression
Resources
http://weblogtoolscollection.com/regex/regex.php
http://www.regular-expressions.info/tutorial.html
http://www.night-ray.com/regex.pdf
http://www.regular-expressions.info/reference.html
IBM’s Essential aids in building and testing regular expressions (on UNIX systems) — Grep and Emacs, mostly.
http://web.ics.purdue.edu/~yoder2/hints/installs/emacs-regexp.txt
http://bc.tech.coop/blog/071103.html
http://regex.info/
Regex Coach
Regulazy
Top 10 reasons to learn and use Regular Expressions
Coding Horror: intro and why to use them
Stack Overflow: why a regex is bad for parsing regexes
Pronunciation
You know, “regexp” is just plain stupid, and unpronouncable. “Regex” is so much easier.
Wayne hits the nail on the head - except for the whole “soft ‘g’” thing.
Testing
http://ola-bini.blogspot.com/2008/06/testing-regular-expressions.html
See Also
Emacs.Regular Expressions for issues with Emacs RegExes
Visual Basic.Vb Regexp?
VisualStudio#RegEx for issues with, er, Visual Studio RegExes
Jan Goyvaerts - SO profile of Regex Buddy author
Category tags
Comments
No comments yet.
Add Comment




