Regular Expression Metacharacters
Terms
undefined, object
copy deck
- \b
- Word boundary
- \d
- Numeral 0 through 9
- \s
- Single white space
- \w
- Letter, numeral or underscore
- .
- Any character except newline
- [...]
- Character set
- [^...]
- Negated character set
- *
- Last character occurring zero or more times
- ?
- Last character occurring zero or one time
- +
- Last character occurring one or more times
- {n}
- Last character occurring exactly n times
- {n,}
- Last character occurring n or more times
- {n,m}
- Last character occurring at least n, at most m times
- ^
- Pattern occurring at the beginning of the string
- $
- Character occurring at the end of the string
- g
- All occurrences of the pattern; that is, (g)lobal
- i
- Case (i)nsensitive occurrences of the pattern
- |
- OR operator