develooper Front page | perl.beginners | Postings from January 2002

regex

Thread Next
From:
Lawrence Liew
Date:
January 3, 2002 22:17
Subject:
regex
Message ID:
NEBBJDMJGEAKOJCPMAKIKEOKDEAA.lliew@timebase.com.au
Hi,

I would like to match the following text (of different lines but standrad
text) using regex.
How can I do that?


<RD><BD+><PT:15>Status of this document<HR>

<RD><PT:11>This document is from an electronic database of legislation
maintained by the Parliamentary Counsel’s Office of Western Australia.<HR>

<RD><BD+><PT:15>Disclaimer<HR>

<RD><IN:0.785417,0,-0.785417><TS:0,NM,NO,0.393056,NM,NO,0.785417,NM,NO,0.786
806,NM,NO,1.17917,NM,NO,1.57292,NM,NO,1.96667,NM,NO,2.35903,NM,NO,2.75278,NM
,NO,3.14653,NM,NO,3.54028,NM,NO,3.93264,NM,NO,4.32639,NM,NO,4.72014,NM,NO,5.
1125,NM,NO,5.50625,NM,NO,5.9,NM,NO><PT:11><TB>(a)<TB>no warranty is given
that it is free from error or omission nor as to the accuracy of any
information in it; and<HR>

<RD><IN:0.785417,0,-0.785417><TS:0,NM,NO,0.393056,NM,NO,0.785417,NM,NO,0.786
806,NM,NO,1.17917,NM,NO,1.57292,NM,NO,1.96667,NM,NO,2.35903,NM,NO,2.75278,NM
,NO,3.14653,NM,NO,3.54028,NM,NO,3.93264,NM,NO,4.32639,NM,NO,4.72014,NM,NO,5.
1125,NM,NO,5.50625,NM,NO,5.9,NM,NO><PT:11><TB>(b)<TB>the State of Western
Australia and its servants expressly disclaim liability for any act or
omission done in reliance on the document or for any consequences of any
such act or omission.<HR>

<RD><BD+><PT:15>Copyright<HR>

<RD><PT:11>Copyright in this document is reserved to the Crown in right of
the State of Western Australia. Reproduction except in accordance with
copyright law with the consent of the Attorney General is prohibited.<HR>


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