Extracted from Pike v7.3 release 45 at 2002-06-04.
pike.roxen.com
[Top]
Regexp

Method Regexp.split()


Method split

array(string) Regexp.split(string s)

Description

Works as Regexp.match, but returns an array of the strings that matched the subregexps. Subregexps are those contained in "( )" in the regexp. Subregexps that were not matched will contain zero. If the total regexp didn't match, zero is returned.

Bugs

You can only have 39 subregexps.