PatternCollection.IsUniversalMatch Method

Namespace
Kampute.DocToolkit.Collections
Assembly
  • Kampute.DocToolkit.dll

Definition

Determines whether the specified pattern is a universal match pattern.
public static bool IsUniversalMatch(ReadOnlySpan<char> pattern)

Parameters

pattern ReadOnlySpan<char>
The pattern to check.

Returns

bool
true if the pattern is a universal match; otherwise, false.

Remarks

A universal match pattern is a single wildcard character (*) that matches any non-empty value.