Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: regex problem with metachars

by tedrek (Pilgrim)
on Nov 07, 2003 at 18:53 UTC ( #305407=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305407]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-09-24 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?