functions-online

preg_split

en
de
fr
pt

description

Split the given string by a regular expression.

Zerlegt die angegebene Zeichenkette anhand eines regulären Ausdrucks.

Éclate une chaîne par expression rationnelle.

Divide uma dada string por uma expressão regular.

declaration of preg_split

array preg_split ( string $pattern , string $subject [, int $limit ] [, int $flags ] )

test preg_split online













comments for preg_split

On 01. Nov 2010 00:02 butzi wrote:

can you giva an example for this? Generally you can always write \ or \\ in strings. They are the same, when no special char is following.

On 29. Sep 2010 13:40 Rob Ferrer wrote:

You seem to be escaping too much, which means I can't test my regular expression (you escape all the slashes). Shame, looks like a useful tool!

+

Leave your comment