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

Re: Extract Data between Tags

by tmharish (Friar)
on Mar 05, 2013 at 18:23 UTC ( #1021887=note: print w/ replies, xml ) Need Help??


in reply to Extract Data between Tags

Try the non-greedy match like so ( addition of he question mark ):

while ($data1 =~ m{(<BIB>.*?</BIB>)}gx)


Comment on Re: Extract Data between Tags
Download Code
Re^2: Extract Data between Tags
by ppremkumar (Novice) on Mar 05, 2013 at 18:27 UTC

    Thank you. It worked.

    I am pretty new to regex and Perl, so I appreciate your help.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-07-02 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls