Skip to content

Instantly share code, notes, and snippets.

@dichharai
Last active February 1, 2023 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dichharai/1a8f8cefd73d68f8c55e196306e2f2d4 to your computer and use it in GitHub Desktop.
Save dichharai/1a8f8cefd73d68f8c55e196306e2f2d4 to your computer and use it in GitHub Desktop.
Metacharacters Description
| 'or' operator.
^ matches at the beginning of lines.
$ matches at the end of a line. Can be end of a string or any location followed by a new line.
\A matches only at the start of the string.
\z matches only at the end of the string.
\b this is a zero-width assertion that matches only at the beginning or end of a word.
\B this is a zero-width assertion and is opposite of \b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment