Pike v8.1 release 6

Method Regexp.SimpleRegexp()->match()


Method match

array(string) match(array(string) strs)

Description

Returns an array containing strings in strs that match the regexp bound to the regexp object.

Bugs

The current implementation doesn't support searching in strings containing the NUL character or any wide character.

See also

split


Method match

int match(string str)

Description

Returns 1 if str matches the regexp bound to the regexp object. Zero otherwise.