Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Regex capturing either quoted strings or bare words (final backslash)

by gmax (Abbot)
on Jan 13, 2003 at 19:30 UTC ( [id://226568]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex capturing either quoted strings or bare words (final backslash)
in thread Regex capturing either quoted strings or bare words

Many thanks for your analysis. You have pinpointed many of the risks that I overlooked in my tests.
I didn't think about a string ending with a backslash. I will follow your suggestion about doubling the quotes. It is unlikely to happen that much, though. Having three different quotes available, the users should be able to use the more appropriate symbol to avoid clashes.
"\t" was just a test, it wasn't supposed to be extended (at least in this script.)
 _  _ _  _  
(_|| | |(_|><
 _|   
  • Comment on Re: Re: Regex capturing either quoted strings or bare words (final backslash)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-23 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found