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

  • Comment on Re: Re: Re: regex problem with metachars

Replies are listed 'Best First'.
Re: Re: Re: Re: regex problem with metachars
by sweetblood (Prior) on Nov 07, 2003 at 19:21 UTC
    That's one I haven't thought of. I try that out. The delimiter should never be more than 1 character.

    Thanks!