- Super User
- Zápisky
- Read Time: 1 min
- Zobrazení: 3867
Quantifiers
Add a ? to a quantifier to make it ungreedy.
Anchors
Assertions
Groups and Ranges
Ranges are inclusive. |
Character Classes
Escape Sequences
"Escaping" is a way of treating characters which have a special meaning in regular expressions literally, rather than as special characters.
Pattern Modifiers
* PCRE modifier
String Replacement
Some regex implementations use \ instead of $. |
Common Metacharacters
The escape character is usually \
POSIX
Special Characters
Case Conversion
|
Source: davechild