Javascript regular expression that replaces html tags
I want to use a regular expression in javascript to replace all occurances of
</tr><tr>
with
<td> </td>
Also, there can be whitespace between the </tr>
tag 开发者_StackOverflow中文版and the <tr>
tag
Thanks!!
result = subject.replace(/<\/tr>\s*<tr>/g, "<td> </td>");
精彩评论