Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Non- greedy regex question

by state-o-dis-array (Hermit)
on Dec 02, 2010 at 23:03 UTC ( #875034=note: print w/ replies, xml ) Need Help??


in reply to Non- greedy regex question

With $xml set as
my $xml = '<bidListing bidId="1234">other stuff here</bidListing>more +stuff here<bidListing bidId="5678">other stuff here</bidListing>';
it works for me. I think that some sample data and better explanation of "it does not work" will help someone provide a solution. And have you considered using one of the xml modules instead of regex?
Comment on Re: Non- greedy regex question
Download Code
Replies are listed 'Best First'.
Re^2: Non- greedy regex question
by yuvanbala (Initiate) on Dec 03, 2010 at 06:49 UTC

    you can use XML::LibXML module for this work

    Thanks And Regards,
    yuvanbala

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2016-04-28 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (436 votes). Check out past polls.