http://www.perlmonks.org?node_id=305407


in reply to Re: Re: regex problem with metachars
in thread regex problem with metachars

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