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

How to grab a portion of file with regex

by romy_mathew (Beadle)
on Mar 14, 2013 at 19:02 UTC ( [id://1023530]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <div class="fk-srch-item fk-inf-scroll-item"> 
        <div class="line fksd-bodytext "> 
    ...
        <div class="line bmargin10"> 
                <h2 class="fk-srch-item-title fksd-bodytext unboldtext"><a
    + href="/software-engineering-practitioner-s-approach-7th/p/itmczynwvw
    +mjatgq?pid=9780071267823&query=Roger+Pressman&srno=s_1&ref=1d31579d-d
    +54b-4c3e-8abf-100b33486a91&otracker=from-search" class="fk-srch-title
    +-text fksd-bodytext">Software Engineering : A Practitioner's Approach
    + 7th Edition (Paperback)</a></h2> 
             <span class='fk-item-authorinfo-text fksd-smalltext'>by <a hr
    +ef="/author/roger-pressman?query=Roger+Pressman&vertical=books&otrack
    +er=from-search"><b>Roger</b> <b>Pressman</b></a></span>
    
  2. or download this
    while($page =~m/class="lastUnit.*\n.*\s+.*\n.*\n.*\n.*\n/ig) { 
         print "sample Text\n"
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-26 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found