Skip to content

Instantly share code, notes, and snippets.

@tylerjames
tylerjames / Python RegEx.md
Created April 26, 2016 18:43 — forked from tkanov/Python RegEx.md
Python 2.7 Regular Expressions

Python 2.7 Regular Expressions

Special characters::

\       escapes special characters.
.       matches any character
^       matches start of the string (or line if MULTILINE)
$       matches end of the string (or line if MULTILINE)

[5b-d] matches any chars '5', 'b', 'c' or 'd'