Click or drag to resize
OSIsoft, LLC

AFSearchConvertAFPatternToRegexPattern Method

Convert an AF query pattern to a pattern that can be used with .NET Regex class.

Namespace:  OSIsoft.AF.Search
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public static string ConvertAFPatternToRegexPattern(
	string afPattern,
	AFSearchTextOption textOption
)

Parameters

afPattern
Type: SystemString
The AF query pattern to be converted.
textOption
Type: OSIsoft.AF.SearchAFSearchTextOption
The text search option to be applied to the pattern.

Return Value

Type: String
Returns a pattern that can be used with the .NET Regex class for matching regular expression patterns.
Remarks
This helper method will convert a query pattern used in AF search methods to a pattern that can be used with the .NET Regex class for matching regular expressions.
Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also
Enabling Operational Intelligence