Utils CapturePatternMatch Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Returns a captured wildcard segment from string. Pattern uses '*' for match capture by default and may contain a single capture

Namespace: NFX.Parsing
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static string CapturePatternMatch(
	this string str,
	string pattern,
	char wc = '*',
	StringComparison comparisonType = StringComparison.InvariantCultureIgnoreCase
)

Return Value

Type: OnlineString

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineString. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also