StringExtensionsToWildcardsRegex Method
Converts the passed string to a
Regex that matches wildcard characters (? and *).
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.2.0
public static Regex ToWildcardsRegex(
this string s
)
<ExtensionAttribute>
Public Shared Function ToWildcardsRegex (
s As String
) As Regex
public:
[ExtensionAttribute]
static Regex^ ToWildcardsRegex(
String^ s
)
[<ExtensionAttribute>]
static member ToWildcardsRegex :
s : string -> Regex
- s String
- The string containing possible wildcard characters.
RegexA
Regex instance that matches the pattern of the given string in
s.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).