JetBrains Intellij IDEA
Replacing Text with Regex

使用正则表达式替换字符串

stitle="(.*)?"s*(/>*)
替换为  2$<title>1$</title>

start typing regular e­xpression that describes all title attributes. Note that though the regular e­xpression stitle=".*?"s*[/>]* matches contents of the title attribute, it is recommended to capture the groups for referencing them in the Replace field: stitle="(.*)?"s*(/>*)