ECLIPSE里怎么替换字符,怎么用正则表达式啊~~~
要把这个:
<a href=/setsites.jsp?cityid=34 class=h_blue12>呼和浩特</a>
<a href=/setsites.jsp?cityid=35 class=h_blue12>包头</a>
<a href=/setsites.jsp?cityid=36 class=h_blue12>乌海</a>
<a href=/setsites.jsp?cityid=37 class=h_blue12>赤峰</a>
<a href=/setsites.jsp?cityid=38 class=h_blue12>通辽</a>
替换为:
<a href="#" onclick="chcity('34','呼和浩特')" class=h_blue12>呼和浩特</a>
<a href="#" onclick="chcity('35','包头')" class=h_blue12>包头</a>
<a href="#" onclick="chcity('36','乌海')" class=h_blue12>乌海</a>
<a href="#" onclick="chcity('37','赤峰')" class=h_blue12>赤峰</a>
<a href="#" onclick="chcity('38','通辽')" class=h_blue12>通辽</a>
如何搞?