Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Advanced replace function

by kyle (Abbot)
on Dec 04, 2009 at 19:08 UTC ( [id://811144]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $str="abc t[poop1] def [doop2] [woop3] xyz";
    $str =~ s/\[.*?\]/~~/g;
    print "$str\n";
    __END__
    abc t~~ def ~~ ~~ xyz
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found