Click or drag to resize

StringUtilsExtractMatchesToStringList Method (String, String, String)

Searches for items in a string between delimiter characters (specified by regex string expression) and extracts each instance of that string into a string list. If no items found the default value is added to the string list if a non empty default is provided.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static StringList ExtractMatchesToStringList(
	string s,
	string matchExpr,
	string defaultVal
)

Parameters

s
Type: SystemString
The string in which to search.
matchExpr
Type: SystemString
The RegEx match expression.
defaultVal
Type: SystemString
The default value to use if no matches are found.

Return Value

Type: StringList
The list of matches, possibly empty, but never null.
See Also