Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
system:regex:regex_notation [2018/04/13 11:46] smayr |
system:regex:regex_notation [2018/04/13 11:52] (current) smayr [Regex Quick Reference] |
||
---|---|---|---|
Line 45: | Line 45: | ||
| \W | Any non-word character | | | \W | Any non-word character | | ||
- | Flags/ | + | Flags/ |
- | ^ Symbol | + | ^ 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 | | ||
- | | X | eXtended | | + | | A | Anchored (anchor to start of pattern) |
- | | A | Anchor | + | | J | Duplicate group names (allow duplicate subpattern names) | |
- | | J | Duplicate group names | | + | | D | Dollar end only ($ matches only end of pattern) |
== Using Regex in PHP == | == Using Regex in PHP == |