Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Search and Replace

by infoninja (Friar)
on Jul 19, 2000 at 19:59 UTC ( [id://23216]=note: print w/replies, xml ) Need Help??


in reply to Search and Replace

You can shorten that to:
s#(\([^)]+\))#{$_=$1;s/;/,/g;$_}#eg
(not a huge difference, but I've had no coffee today...)
update:Fixed to add g modifier to end (see turnstep's post below)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-19 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found