【发布时间】:2019-06-10 13:56:45
【问题描述】:
我有一个像这样的简单输入标签
<input type="password" name="repassword" placeholder="Enter password">
我想使用 Sublime Text 3 并添加一个 aria-label,其代码与 placeholder 中的代码相同。我想要的最终结果是这样的
<input type="password" name="repassword" placeholder="Enter password" aria-label="Enter password">
我把这个正则表达式放在 Search 字段 <input.*?placeholder="(.*?)"
这在 Replace 中归档 <input.*?placeholder=".*?" aria-label="$(1)"
但我最终得到了这个<input.*?placeholder=".*?" aria-label="$(1)">
更新:我在 Sublime Text 中启用了 RedEx 按钮,这不是问题。因为搜索效果很好。
【问题讨论】:
标签: sublimetext3