J
jmchadha
I have got the following html:
"something in html ... etc.. city1... etc... <a class="font1"
href="city1.html" onclick="etc."> click for <b>info</b> on city1 </a>
... some html. city1.. can repeat lot of times here....
Requirement:
-------------------
I want to get the value of "href" i.e "city1.html" by searching "city1"
between the <a> </a> tag. Please note that "city1" can repeat lot of
times in the html, but I have to search for "city1" which lies between
<a></a> tag. Please note that there can be other tags between <a></a>
tags also like <b></b> tag in above html.
I want to do this in C# and using Regex. I am new to Regex and I would
really appreciate any help on this.
Thanks
JM
"something in html ... etc.. city1... etc... <a class="font1"
href="city1.html" onclick="etc."> click for <b>info</b> on city1 </a>
... some html. city1.. can repeat lot of times here....
Requirement:
-------------------
I want to get the value of "href" i.e "city1.html" by searching "city1"
between the <a> </a> tag. Please note that "city1" can repeat lot of
times in the html, but I have to search for "city1" which lies between
<a></a> tag. Please note that there can be other tags between <a></a>
tags also like <b></b> tag in above html.
I want to do this in C# and using Regex. I am new to Regex and I would
really appreciate any help on this.
Thanks
JM