Monday, October 11, 2010

Regular Expression to remember


^ matches beginning of line

$ matches end of line
. matches any single character
* matches zero or more occurrences
[...] matches any one of characters in ...
[^...] matches any signle character not in ...

-
Kernighan and Pike, "The UNIX Programming Environment", 1984

No comments:

Post a Comment