Home Notices Documents Classes Download Others Rice
Classes  >  regex  >  regex(string)
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 © Rice All rights reserved.