Regular Expression RegEx RegExp Resources
Quantifiers
- *
Zero of more of the character that immediately precedes it - +
One or more of the character that immediately precedes it - ?
Zero or One of the character that immediately precedes it
Special Symbols
- ^
Start of line - $
End of line - \A
Start of string - \z
End of string - .
Any single character - \s
Any whit space character - \S
Any non white space character - \d
Any digit - \D
Any non digit - \w
Any word character (letter, number or underscore) - \W
Any non word character - \b
Any word boundary
Braces
- {}
Length Quantifier - ()
Group- ?<>
Group Name - ?:
Non Capturing Group
- ?<>
- []
Set, array, collection
Look Ahead
(?=)
Matches a string pattern to the right but does not include it in the return
Look Behind
(?>=)
(?<!) Negative
Matches a string pattern ti the left but does not include it in the return
DotNet RegEx Class
[regex]::Match()
Searches an input string for a substring that matches a regular expression pattern and returns the first occurrence as a single Match object
[regex]::Matches()
Searches an input string for all occurrences of a regular expression and returns all the matches
Related
Links
- Regexr.com
- Regex101.com
- regexhero.net/tester/ (requires Silver Light)
- https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex?view=net-6.0