【问题标题】:Notepad++ search functionaniltyNotepad++ 搜索功能
【发布时间】:2017-08-05 10:34:46
【问题描述】:

我正在尝试修改一个相当大的文档。我正在努力改变

<entity class="Style" count="29">
<entity class="Style" count="40">
<entity class="Style" count="50">

<entity class="Style" count="1">
<entity class="Style" count="1">
<entity class="Style" count="1">

在替换中我尝试做

<entity class="Style" count="^\d">

但这似乎不起作用。 有人有什么建议吗?

谢谢!

【问题讨论】:

  • 使用&lt;entity class="Style" count="\d+"&gt;并替换为&lt;entity class="Style" count="1"&gt;

标签: search replace notepad++


【解决方案1】:

您需要删除行锚^ 的开头并在\d 之后添加+ 以匹配1 个或多个数字:

查找&lt;entity class="Style" count="\d+"&gt;
替换为&lt;entity class="Style" count="1"&gt;
正则表达式Enabled

【讨论】:

  • 非常感谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-02-12
  • 2019-04-21
  • 2015-04-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多