nifty idea. It should be able to include multiple characters even. You could simplify so many regular expressions this way, without cumbersom back-references.

$regtok(abc...def...ghi,1,/\.{3}/)
$regex(abc...def...ghi,/(.*?)\.{3}|\.{3}(.*?)/g) ... $regml(1)
Actually, that expression wont work without a \G or pos() somewhere, but I can't figure it out right now.
it's only returning 'abc' and 'def' but not 'ghi'. frown

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!