我想把下面的字体格式去掉,正则表达式怎么写,看了下不是很
<font size= "1 "> aaa </font>
<font size= "2 "> bbb </font>
<font size= "3 "> ccc </font>
<font size= "4 "> ddd </font>
变成
aaa
bbb
ccc
ddd
------解决方案--------------------
<textarea id=textarea1>
<font size= "1 "> aaa </font>
<font size= "2 "> bbb </font>
<font size= "3 "> ccc </font>
<font size= "4 "> ddd </font>
</textarea>
<script>
function rep(str)
{
var re=/ <font[^> ]*> (.*?) <\/font> /g;
str=str.replace(re, "$1 ")
alert(str)
}
rep(textarea1.value);
</script>