Regular Expression - Documentation
Metacharacters Character What does it do? $ Matches the end of the input . If in multiline mode, it also matches before a line break character , hence every end of line. (?:x) Matches 'x' but does NOT remember the match . Also known as NON-capturing parenthesis. (x) Matches 'x' and remembers the match . Also known as capturing parenthesis. * Matches the preceding character 0 or more times . + Matches the preceding character 1 or more times . . Matches any single character except the newline character . ? Matches the preceding character 0 or 1 time . When used after the quantifiers *, +, ? or {}, makes the quantifier non-greedy ; it will match the minimum number of times as opposed to matching the maximum number of times. [\b] Matches a backspace . [^abc] Matches anything NOT enclosed by the brackets . Also known as a negative character set. [abc] Matches any of the enclosed characters . Also known as a charac...