Creates and caches a Regex object for later use and retrieves it in a later call if it is cacehd
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static Regex GetCachedRegex( string pattern, RegexOptions options = RegexOptions.None, int timeoutSeconds = 2 ) |
Visual Basic |
---|
Public Shared Function GetCachedRegex ( pattern As String, Optional options As RegexOptions = RegexOptions.None, Optional timeoutSeconds As Integer = 2 ) As Regex |
Parameters
- pattern
- Type: System..::..String
parampatternM:DotNetNuke.Common.Utilities.RegexUtils.GetCachedRegex(System.String,System.Text.RegularExpressions.RegexOptions,System.Int32)
- options
- Type: System.Text.RegularExpressions..::..RegexOptions
paramoptionsM:DotNetNuke.Common.Utilities.RegexUtils.GetCachedRegex(System.String,System.Text.RegularExpressions.RegexOptions,System.Int32)
- timeoutSeconds
- Type: System..::..Int32
paramtimeoutSecondsM:DotNetNuke.Common.Utilities.RegexUtils.GetCachedRegex(System.String,System.Text.RegularExpressions.RegexOptions,System.Int32)