Class RegexProvider
Inheritance
System.Object
RegexProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syn.Bot.Common
Assembly: Syn.Bot.dll
Syntax
public static class RegexProvider
Properties
TryCompiling
Declaration
public static bool TryCompiling { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetCompiledRegex(String, RegexOptions)
Declaration
public static Regex GetCompiledRegex(string pattern, RegexOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | |
System.Text.RegularExpressions.RegexOptions | options |
Returns
Type | Description |
---|---|
System.Text.RegularExpressions.Regex |
GetCompiledRegex(String)
Declaration
public static Regex GetCompiledRegex(string pattern)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern |
Returns
Type | Description |
---|---|
System.Text.RegularExpressions.Regex |
SetPattern(String, String)
Declaration
public static void SetPattern(string patternName, string regexPattern)
Parameters
Type | Name | Description |
---|---|---|
System.String | patternName | |
System.String | regexPattern |