Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Answer: How do I surround commas with escaped double-quotes?

by Shendal (Hermit)
on Aug 23, 2000 at 19:50 UTC ( #29230=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do I surround commas with escaped double-quotes? - Answer contributed by Shendal

$_ = ','; s!,!"\\\\\\",\\\\\\""!; print "$_\n";
This prints:
"\\\",\\\""
Is this what you're looking for?

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[james28909]: im gonna hit the sack, its 1:30 here, ill look more closely at it tomorrow

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-05-24 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?