regex using vb.net
Posted
by akmalizhar
on Stack Overflow
See other posts from Stack Overflow
or by akmalizhar
Published on 2010-06-01T04:17:45Z
Indexed on
2010/06/01
4:23 UTC
Read the original article
Hit count: 256
hi,
i have this html code
<div class="name">
<span id="businessNumOnMap2" class="resultNumberOnMap" style="display:none;">2</span>
<span>
<a href="/len/aapproximatch%20search/284096.php" onclick="loadBusinessInfo('1', '284096'); return false;" class="businessName">Bangsar Seafood Garden Restaurant</a></span><span id="phoneSpan1"></span>
<script type="text/javascript">
var d=document.getElementById('phoneSpan1');d.innerHTML+='0';d.innerHTML+='3';d.innerHTML+=0?'8':'-';d.innerHTML+=1?'2':'1';d.innerHTML+='2';d.innerHTML+=1?'8':'1';d.innerHTML+=0?'0':'2';d.innerHTML+='2';d.innerHTML+=0?'4':'5';d.innerHTML+='5';d.innerHTML+=1?'5':'0';
</script>
</div>
i start my regex with this : <div class="name"[^>]*>[\s\S]+?</div>
and i remove the html. im using this : <[^>]*>
how ever, the out put is Bangsar Seafood Garden Restaurant <script type = "text/javascript"> ...</script><div>
the one that i want is on Bangsar Seafood Garden Restaurant..can anyone help me?
© Stack Overflow or respective owner