Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Perl RE; how to capture, and replace based on a block?

by taint (Chaplain)
on Dec 18, 2013 at 05:51 UTC ( [id://1067594]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat ./FILE.html | perl {...}
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
    while (<>) {
        print if /$regexp/;
    }
    
  3. or download this
    # ./retest.pl \</\div\>\n\<\/body\> ./FILE.html
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-23 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found