Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Regexp
Regexp.PCRE
Regexp.PCRE._Regexp_PCRE
Regexp.PCRE._Regexp_PCRE.Plain

Method Regexp.PCRE._Regexp_PCRE.Plain()->match()


Method match

int(0..1) match(string subject, void|int startoffset)

Description

returns true (1) if a match is found, false otherwise

example: > Regexp.PCRE.Plain("is fun")->match("pike is fun"); Result: 1 > Regexp.PCRE.Plain("is fun")->match("pike isn't fun"); Result: 0