If the delimiter will always be one character then you can assume anything longer than 1 character is a escape sequence like "\t". So you just call quotemeta() on delimiters with a length of 1.
HTH
Tedrek
In reply to Re: Re: Re: regex problem with metachars
by tedrek
in thread regex problem with metachars
by sweetblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |