Class WildcardMatch
Provides wildcard pattern matching extensions for strings.
Inherited Members
Namespace: Akka.Util
Assembly: Akka.dll
Syntax
public static class WildcardMatch
Methods
| Edit this page View SourceLike(string, string, bool)
Checks if a string matches a wildcard pattern using * for any sequence and ? for any single character.
Declaration
public static bool Like(this string text, string pattern, bool caseSensitive = false)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text to check against the pattern. |
string | pattern | The wildcard pattern to match with (* for any sequence, ? for any character). |
bool | caseSensitive | Whether the matching should be case sensitive. Default is false. |
Returns
Type | Description |
---|---|
bool | True if the text matches the pattern, false otherwise. |