Regular expressions help
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-04-16T07:29:55Z
Indexed on
2010/04/16
7:33 UTC
Read the original article
Hit count: 350
If I had the following HTML:
<li><a href="aaa"> Thisislink1</a></li>
<li><a href="abcdef"> Thisisanotherlink</a></li>
<li><a href="12345"> Onemorelink</a></li>
Where each link will be different in length and value.
How can I search for the values inside the link (IE: Thisislink1, Thisisanotherlink and Onemorelink) with a search phrase, say 'another'. So in this example, only 'Thisisanotherlink' would be returned, but if I changed the search phrase to 'link', then all 3 values will be returned.
© Stack Overflow or respective owner