Description for the meta character was provided for regex note

This commit is contained in:
Shudarsan Regmi committed 2024-06-22 06:22:54 +05:30
1 parent 295cad9865
commit ee907bab43
1 file changed
+16 -14
+16 -14
View File
@@ -64,21 +64,23 @@ This is a quick cheat sheet to getting started with regular expressions.
| `a*+` | Possessive quantifier |
### Common Metacharacters
| Pattern | Description |
| -------- | :----------------------------------------- |
| `^` | Matches the start of a string. |
| `{` | Starts a quantifier for the number of occurrences. |
| `+` | Matches one or more of the preceding element. |
| `<` | Not a standard regex meta character (commonly used in HTML). |
| `[` | Starts a character class. |
| `*` | Matches zero or more of the preceding element. |
| `)` | Ends a capturing group. |
| `>` | Not a standard regex meta character (commonly used in HTML). |
| `.` | Matches any character except a newline. |
| `(` | Starts a capturing group. |
| `|` | Acts as a logical OR within a regex pattern. |
| `$` | Matches the end of a string. |
| `\` | Escapes a meta character, giving it literal meaning. |
| `?` | Matches zero or one of the preceding element. |
- \^
- \{
- \+
- \<
- \[
- \*
- \)
- \>
- \.
- \(
- \|
- \$
- \\
- \?
{.cols-3 .marker-none}