Click or drag to resize

LinqExtensionMethodsIsRegexMatch Method

Returns whether or not the given String matches a given regular expression

Namespace:  Couchbase.Lite.Internal.Linq
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0125
Syntax
C#
public static bool IsRegexMatch(
	this string item,
	string pattern
)

Parameters

item
Type: SystemString
The String to test (implicit)
pattern
Type: SystemString
The pattern to test against

Return Value

Type: Boolean
true if the String matches, false otherwise

Usage Note

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