I am trying to extract the names: "Harrisburg
" & "Gujranwala
" from the 2 pieces of code below:
<td><a href="/worldclock/city.html?n=97">Harrisburg</a><span id=p217s class=wds> *</span></td>
<td><a href="/worldclock/city.html?n=3551">Gujranwala</a><span id=p204s class=wds></span></td>
The Regex as of now doesn't work, how to fix it?
My Regex:
(?<=<td><a href="\/worldclock\/city\.html\?n=[0-9]{0, 5}">).*(?=<\/a><span id=p[0-9]{0, 4}s class=wds>( \*)</span><\/td>)
The regex is for python. Thanku