Pattern.patternMatchSimple

Matches a string against a pattern given as a string. If this function is to be called in a loop, it's more efficient to compile the pattern once with Pattern.specNew and call Pattern.matchString repeatedly.

class Pattern
static
bool
patternMatchSimple
(
string pattern
,
string string_
)

Parameters

pattern string

the UTF-8 encoded pattern

string_ string

the UTF-8 encoded string to match

Return Value

Type: bool

TRUE if string matches pspec