hi,
normally, preg_split (or simply explode) and preg_match should do the jod, the only problem could be the syntax, e.g.
ereg('toto', $string); //you don't need delimiters for simple string search
must be changed into
preg_match('#toto#', $string); //here you need delimiters even for a simple string search
in the split case, you can simply change
into
when you don't need a regex, they will do the same job
have swing