Fan.Sys.Regex.fromStr C# (CSharp) Method

fromStr() public static method

public static fromStr ( string pattern ) : Regex
pattern string
return Regex
        public static Regex fromStr(string pattern)
        {
            return new Regex(pattern);
        }

Usage Example

Example #1
0
 public static Regex toRegex(string self)
 {
     return(Regex.fromStr(self));
 }