Pattern.matchSpaceless

Matches the given input string without splitting up by spaces.

struct Pattern
bool
matchSpaceless
()

Parameters

toTestAgainst string

The string to test for.

Return Value

Type: bool

true if there was a match for the given string, false otherwise.

Examples

assert(Pattern("v|verbose").matchSpaceless("v"));
assert(Pattern("v|verbose").matchSpaceless("verbose"));
assert(!Pattern("v|verbose").matchSpaceless("lalafell"));

Meta