User:Jarle Pahr/Regexp: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
Line 6: Line 6:


http://www.codinghorror.com/blog/2008/06/regular-expressions-now-you-have-two-problems.html
http://www.codinghorror.com/blog/2008/06/regular-expressions-now-you-have-two-problems.html
http://www.proftpd.org/docs/howto/Regex.html





Revision as of 10:37, 1 October 2013

Notes on regular expressions:

http://www.regexbuddy.com/

http://stackoverflow.com/questions/7473951/how-to-use-curl-and-sed-to-extract-a-single-element-from-a-short-json-query

http://www.codinghorror.com/blog/2008/06/regular-expressions-now-you-have-two-problems.html

http://www.proftpd.org/docs/howto/Regex.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

http://www.pythonregex.com/

https://developers.google.com/edu/python/regular-expressions?hl=no&csw=1

http://regexpal.com/

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