[Tutor] return first line

Norman Khine norman at khine.net
Mon Mar 15 15:52:53 CET 2010


hello,
i have this string

http://paste.lisp.org/+22E5

which is extracted from an html page file using regex. the issue i
have is that i am unsure how to strip the first tag in this case
<h2>Association NAtionale des Producteurs de QUInoa (ANAPQUI)</h2> as
on the pages this is not consistent. for example sometimes it is:

<p style="strong">, <h3> etc...

how would you pull the tag and also the data from this?

thanks
norman


More information about the Tutor mailing list