Regex cheatsheet

PatternDescription
[abc]A single character of: a, b or c
[^abc]A character except: a, b or c
[a-z]A character in the range: a-z
[^a-z]A character not in the range: a-z
[0-9]A digit in the range: 0-9
[a-zA-Z]A character in the range: a-z or A-Z
[a-zA-Z0-9]A character in the range: a-z, A-Z or 0-9
PatternDescription
a?Zero or one of a
a*Zero or more of a
a+One or more of a
[0-9]+One or more of 0-9
a{3}Exactly 3 of a
a{3,}3 or more of a
a{3,6}Between 3 and 6 of a
a*Greedy quantifier
a*?Lazy quantifier
a*+Possessive quantifier
PatternRight column
Cell 1$1600
Cell 2$12
Left columnRight column
Cell 1$1600
Cell 2$12