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

ClassNameDescription
stringregularExpressionPatternA regular expression pattern.

Return value

ClassDescription
regexA 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.

Links for reference

Copyright © Cooker All rights reserved.