Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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)

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021887]
[LanX]: YM: talking about breaches ... did you read about Cambridge Analytica harvesting 50e6 FB profiles for political propaganda?
LanX ... oh ... Brexit delayed ... again ... oh wonder ...
[Your Mother]: Heh. I keeping seeing related headlines but my narcissism is a perihelion right now so I'm busy. :P
[LanX]: https://www. news/series/ cambridge- analytica-files
[Your Mother]: s/a /at /;
[LanX]: just watch the video ...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2018-03-19 13:17 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.