Documente Academic
Documente Profesional
Documente Cultură
0 or more
\A
Start of string
1 or more
(a|b)
a or b
0 or 1
(...)
Group
\Z
End of string
{3}
Exactly 3
(?:...)
\b
Word boundary
{3,}
3 or more
[abc]
Range (a or b or c)
\B
{3,5}
3, 4 or 5
[^abc]
Not a or b or c
\<
Start of word
[a-q]
Letter from a to q
\>
End of word
[A-Q]
[0-7]
Digit from 0 to 7
\n
nth group/subpattern
\c
Control character
\s
White space
\S
\d
Digit
<
>
\D
Not digit
\w
Word
\W
Not word
\x
Hexadecimal digit
\n
New line
\O
Octal digit
\r
\t
\v
Vertical tab
Global match
Case-insensitive
Multiple lines
Carriage return
Evaluate replacement
Tab
Ungreedy pattern
[:upper:]
\f
Form feed
[:lower:]
\xxx
$n
[:alpha:]
All letters
\xhh
Hex character hh
$2
"xyz" in /^(abc(xyz))$/
[:alnum:]
$1
"xyz" in /^(?:abc)(xyz)$/
[:digit:]
Digits
$`
[:xdigit:]
Hexadecimal digits
$'
[:punct:]
Punctuation
$+
[:blank:]
$&
[:space:]
Blank characters
[:cntrl:]
Control characters
[:graph:]
Printed characters
[:print:]
[:word:]
Lookahead assertion
?!
Negative lookahead
?<=
Lookbehind assertion
?!= or ?<!
Negative lookbehind
?>
Once-only Subexpression
?()
?()|
?#
Comment
Cheatographer
Cheat Sheet
Sponsor
DaveChild
cheatography.com/davechild/
Try it free!
www.addedbytes.com/
http://www.envoyapp.com