Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Re: Irregular Expression??

by benrwebb (Scribe)
on Feb 24, 2004 at 17:26 UTC ( #331444=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Irregular Expression??
in thread Irregular Expression??

Assuming jbware's regex is correct (not testing it), wouldn't it be better to write:

$a =~ s#'#\'\'#g;

That way you aren't tracking around a bunch of backslashes? Or am I remembering wrong and s/// doesn't allow it?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2020-01-29 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?