Textwrangler:如何用{\ d +}替换\ d +?

时间:2017-10-23 08:07:04

标签: replace find textwrangler

我需要使用text \ textsuperscript { n }找到并替换文本[ n ]。

其中 n 是1-99之间的数字。

EG。带有文本\ textsuperscript {15}

的文本[15]

我不是程序员,但认为grep是我的朋友。

我试过了: 查找:\[\d+\] 替换:\\textsuperscript{\d+} 这会找到数字,但用\ textsuperscript {\ d +}替换它们(可预见)。

我哪里出错了?

感谢您的帮助。 在Google Groups for Textwrangler上找到解决方案。显然我需要一个子模式。

查找:\[(\d+)\]

Repalce:\\textsuperscript\{\1}

以下是Solution

的链接

1 个答案:

答案 0 :(得分:0)

感谢您的帮助。在Google Groups for Textwrangler上找到解决方案。显然我需要一个子模式。

查找:\[(\d+)\]

Repalce:\\textsuperscript\{\1}

以下是Solution

的链接
相关问题