User:Jarle Pahr/Regexp
From OpenWetWare
Jump to navigationJump to search
Notes on regular expressions:
http://www.codinghorror.com/blog/2008/06/regular-expressions-now-you-have-two-problems.html
Python
http://docs.python.org/2/library/re.html
http://docs.python.org/2/howto/regex.html
http://www.tutorialspoint.com/python/python_reg_expressions.htm
https://developers.google.com/edu/python/regular-expressions?hl=no&csw=1
http://www.diveintopython.net/regular_expressions/index.html
Perl
Syntax
$ : End of string
^ : Beginning of string
\b : Word boundary
| : Or
X{a,b} : minimum a, maximum b X characters.
\d : any numeric digit.
\d{n} : exactly n numeric digits.
\D : Any character except numeric digits.
+ : One or more
. : single character (wildcard)
\D+ : 1 or more characters, except numeric digits.
- : zero or more characters