Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Replacing Text

by saintly (Scribe)
on Apr 06, 2007 at 01:58 UTC ( [id://608584]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $contents_of_file =~ s/\<a.*?\>(.*?)\<\/a\>/$1/igs;
    
  2. or download this
    $ perl -pi -e 's/\<a.*?\>(.*?)\<\/a\>/$1/igs' *.html
    
  3. or download this
    <a href="something"> foo!
    </a>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-18 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found