如何替换<code> HTML tags with backticks in Atom?

时间:2015-11-21 08:51:20

标签: html regex markdown atom-editor

I have been trying to switch between a WordPress blog and a Jekyll blog. As part of this I would like to convert <code> tags (and its closing tag </code>) with backticks (`). My text editor is Atom and I would like to be able to automate this action using Atom's RegEx search function.

1 个答案:

答案 0 :(得分:1)

搜索:

UIStackView

替换为:

</?code>

正则表达式` </?code><code>匹配,因为? quantifier使前一个标记可选(</code>)。

相关问题