Created
November 30, 2022 17:05
-
-
Save s0md3v/b051e6e8f9f4a089dc443b686cc0bcd6 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
b match b | |
b+ is match bbbbbbbbbbbbbbbbbbbbbbbbb | |
+ is 1 or more matches | |
[bd] is match b d | |
[bd]+ is match bbbdddbbdbdbdbdbdbd, bbbbbddddddd, bbbbbbbbbb, dddddddddddd | |
b* bbbbbbbbbbbbbbbbbbbbbbbbb | |
* is 0 or more matches | |
[^x] matches everything but x | |
(ab+|bc+) will match both abbbbbbb and bccccccccccc, its a OR statement | |
0123456789 \d | |
abcd....xyz a-z | |
ABC------XYZ A-Z | |
\s whitespaces like spaces, tabs | |
\n for newlines | |
. is for everything | |
? is for optional | |
aaaaaaaaaaaa{10,35} | |
aaaa{10,} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment