Skip to content

function wildcardMatch (shared-side)

Available since version: 0.3.5.4

The function tries to match the given string with wildcard pattern.

Declaration

bool wildcardMatch(string pattern, string text)

Parameters

  • string pattern: the wildcard pattern containing either '*' or '?'. Currently supported pattern formats: *: matches any number of characters. ?: matches one character of any type.
  • string text: the text which will be used to test.

Returns bool

.