R3m/framework Function reference preg.split

{preg.split(String $pattern, String $subject, Int $limit=-1, String $flags)}

Split the given string by a regular expression.

Pattern: The pattern to search for, as a string.

Subject: The input string.

limit If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring. A limit of -1 or 0 means "no limit".


Returns an array containing substrings of subject split along boundaries matched by the pattern, or false on failure.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com