我不太擅长正则表达.我试图用Netbeans中的文本替换大型HTML文档.有几个这样的标签:
<canvas width="62" height="23" style="width: 62px; height: 23px; top: 1px; left: 1px; ">
<canvas width="62" height="23" style="width: 62px; height: 23px; top: 1px; left: 1px; ">
<canvas width="67" height="23" style="width: 67px; height: 23px; top: 1px; left: 1px; ">
Run Code Online (Sandbox Code Playgroud)
我想用空格或空值替换这些标记以删除它们.
我试过了
^<canvas width="[0-9]*" height="[0-9]*" style="width: [0-9]*px; height: [0-9]*px; top: [0-9]*px; left: [0-9]*px; ">
Run Code Online (Sandbox Code Playgroud)
但它没有帮助.
有谁能给我一个解决方案?