【问题标题】:Search and Replace Content Between and Including Tags with Coda Editor使用 Coda Editor 搜索和替换标签之间和包含标签之间的内容
【发布时间】:2013-06-25 21:59:58
【问题描述】:

我有几百行代码的文档。我正在使用 Coda 编辑文件。我正在尝试用带有“空格”的 [tibby] 标签替换内容。例如,我想更改以下内容:

Some text before the tag [tippy title="Share the Knowledge"]Some content. @987654321@" title="Tweet This"> Some other content.[/tippy] More text...
具有以下内容:
Some text before the tag  More text...
基本上删除了[tippy]标签以及打开和关闭标签中的所有内容。

有人能告诉我我会在搜索字符串中输入什么吗?

谢谢

【问题讨论】:

  • 这些标签可以嵌套吗?

标签: regex coda replace


【解决方案1】:

简单:

 find: \[tippy[^]]*][^]]*\[/tippy]       or \[\/tippy]
 replace: a space

 find: \[tiby[^\]]*\][^\]]\[/tippy\]    or \[\/typpy\] 
 replace: a space

【讨论】:

  • @m.buettner:恭喜您的赏金回答。
  • 感谢一百万卡西米尔,我尝试了第一个,效果很好:)
猜你喜欢
  • 2015-09-04
  • 2018-07-04
  • 2022-01-06
  • 1970-01-01
  • 2014-09-29
  • 1970-01-01
  • 1970-01-01
  • 2015-06-11
  • 1970-01-01
相关资源
最近更新 更多