Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to insert a "/" within a string?

by oko1 (Deacon)
on Feb 22, 2012 at 00:58 UTC ( #955423=note: print w/ replies, xml ) Need Help??


in reply to How to insert a "/" within a string?

Why can't you guys just give a nice straight answer, like this one?

s/(?<O>\103)(?<C>\117)/$+{O}\057$+{C}/g;

(This answer is just as serious as the ones before it, and the suggestions for appropriateness of usage still apply.)

-- 
I hate storms, but calms undermine my spirits.
 -- Bernard Moitessier, "The Long Way"


Comment on Re: How to insert a "/" within a string?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2015-07-29 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (268 votes), past polls