Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
system:regex:regex_notation [2018/04/13 11:40] smayr [Regex Quick Reference] |
system:regex:regex_notation [2018/04/13 11:52] (current) smayr [Regex Quick Reference] |
||
---|---|---|---|
Line 25: | Line 25: | ||
General Tokens: | General Tokens: | ||
+ | ^ Symbol | ||
| \n | Newline | | | \n | Newline | | ||
| \r | Carriage return | | | \r | Carriage return | | ||
| \t | Tab | | | \t | Tab | | ||
+ | | \f | Form-feed | | ||
| \0 | Null character | | | \0 | Null character | | ||
Anchors: | Anchors: | ||
+ | ^ Symbol | ||
| \G | Start of match | | | \G | Start of match | | ||
| < | | < | ||
Line 42: | Line 45: | ||
| \W | Any non-word character | | | \W | Any non-word character | | ||
- | + | Flags/ | |
- | Flags/ | + | ^ Symbol |
- | | g | Blobal | + | | g | Global (do not return after first match) |
| i | Case insensitive | | | i | Case insensitive | | ||
- | | m | Multiline (make dot match newlines) | + | | m | Multiline (dot matches |
- | | s | Single line | | + | | s | Single line (dot matches newline) |
- | | u | Unicode | | + | | u | Unicode |
- | | x | Ignore | + | | x | eXtended (ignore |
+ | | X | eXtra (disallow meaningless excapes| | ||
| o | Perform #{...} substitutions only once | | | o | Perform #{...} substitutions only once | | ||
+ | | A | Anchored (anchor to start of pattern) | | ||
+ | | J | Duplicate group names (allow duplicate subpattern names) | | ||
+ | | D | Dollar end only ($ matches only end of pattern) | | ||
== Using Regex in PHP == | == Using Regex in PHP == | ||
Line 86: | Line 93: | ||
== References == | == References == | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// |