StringExtensionsToWildcardsRegex Method

Converts the passed string to a Regex that matches wildcard characters (? and *).


Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.2.0
public static Regex ToWildcardsRegex(
	this string s


s  String
The string containing possible wildcard characters.

Return Value

A Regex instance that matches the pattern of the given string in s.

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