Regex on this string
Posted: Thu Dec 31, 2009 6:38 am
What regex do I need on this string:
<span class="test">06:00</span> <span class="information"><a href="http://example.com/tesTing/0,123.html">Test</a>
to get this result:
06:00</span> <span class="information"><a>Test
The string's have have the same structure except for a variable url in the href.
I have this regex: #<span class="test">(.+?)</a>#s but it displays me the string with the actual href.
<span class="test">06:00</span> <span class="information"><a href="http://example.com/tesTing/0,123.html">Test</a>
to get this result:
06:00</span> <span class="information"><a>Test
The string's have have the same structure except for a variable url in the href.
I have this regex: #<span class="test">(.+?)</a>#s but it displays me the string with the actual href.