regex class : regex(string) fitter
Description
Gets a new instance of the regex class which was initialized with the specified regular expression.
Syntax
new regex(string regularExpressionPattern)
Arguments
Class | Name | Description |
string | regularExpressionPattern | A regular expression pattern. |
Return value
Class | Description |
regex | A new instance of the regex class which was initialized with the specified regular expression. |
Sample code
1: | regex pattern = new regex("^\s*"); |
Notes
It's a wrapper of the System.Text.RegularExpressions.Regex.Regex(String) constructor.