Last active
February 1, 2023 06:51
-
-
Save dichharai/1a8f8cefd73d68f8c55e196306e2f2d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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