Extracted from Pike v7.4 release 341 at 2005-11-30.
pike.ida.liu.se
[Top]
predef::
Regexp

Method Regexp.match()


Method match

int Regexp.match(string str)

Description

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


Method match

array(string) Regexp.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 (Pike 7.3.51) doesn't support searching in strings containing the NUL character or any wide character.

See also

split