Braineos
DiscoverChallenges
Sign in
← Back to decks
Sign in to save your progress, vote, and build your own decks.Sign in

Regex Keywords

11 cards·by braineos
Study this deck

Where this fits

regex

No other decks with this tag yet.

.
Matches any character except for line breaks if dotall is false.
*
Matches 0 or more of the preceding character.
+
Matches 1 or more of the preceding character.
?
Preceding character is optional. Matches 0 or 1 occurrence.
\d
Matches any single digit
\w
Matches any word character (alphanumeric & underscore).
[XYZ]
Matches any single character from the character class.
[XYZ]+
Matches one or more of any of the characters in the set.
&
Matches the end of the string.
^
Matches the beginning of a string.
[^a-z]
When inside of a character class ^ means NOT; in this case match anything that is NOT a lowercase letter.