Use the /pattern/ syntax to match a specific string:
Use the /pattern|pattern/ syntax to match any of multiple strings:
Use the /^pattern1-pattern2/ syntax to match any string between pattern1 and pattern2
Use the /pattern/ syntax to match a specific character:
Use the \bword\b syntax to match a word:
Use the \b syntax to match a word boundary:
Use the \d syntax to match a digit:
Use the \D syntax to match a non-digit:
Use the \s syntax to match a whitespace character:
Use the \S syntax to match a non-whitespace character:
Use the \w syntax to match any word character (alphanumeric plus underscore):
Use the \W syntax to match any non-word character:
Use the \b syntax to match a word boundary:
Use the ^ syntax to match the start of a line:
Use the $ syntax to match the end of a line:
Use the \n syntax to match a newline:
Use the \t syntax to match a tab:
Use the \r syntax to match a carriage return:
Use the \f syntax to match a form feed:
Use the \v syntax to match a vertical tab: