develooper Front page | perl.beginners | Postings from May 2007

How to split a large string with repeating delimiters into multiple substrings

Thread Next
From:
Michael Goopta
Date:
May 23, 2007 06:53
Subject:
How to split a large string with repeating delimiters into multiple substrings
Message ID:
197788.55204.qm@web38905.mail.mud.yahoo.com
Hi All,

I am new to Perl.

How can I split the below string and get the multiple
web-addresses in a list: (i.e. the strings between <upsl-url>
and </upsl-url>

<upsl-url>http://view-preprod.admission.net/abc/mactive/_NJMG_0002029003-01/i-1.JPG?t=tr/m:FitPad/w:199/h:124&amp;t=ts/r:199x199</upsl-url><upsl-url>http://view-preprod.admission.net/abc/mactive/_NJMG_0002029003-01/i-1.JPG?t=tr/m:FitPad/w:199/h:124&amp;t=ts/r:199x199</upsl-url>
</ad-type>

Any help is appreciated.

Regards,
Michael

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About