崇高的文本正则表达式查找和替换 [英] Sublime text regex find and replace
本文介绍了崇高的文本正则表达式查找和替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在崇高的文本中,我需要替换以下所有实例:
In sublime text, I need to replace all instances of:
rs('???????')
与
$rs['??????']
(保持 ??????? 部分相同).我是一个 regex 处女,我只能在查找和替换面板上找到 regex 按钮.
(keeping the ??????? part the same). I'm a regex virgin and I've only got as far as locating the regex button on the find and replace panel.
这怎么可能.
推荐答案
查找正则表达式:
rs\('(.*?)'\)
替换:
$rs['$1']
请注意,这将期望引号内的任何内容;如果这不是你需要的,请告诉我:)
Beware that this will expect anything inside the quotes; if it isn't what you need, please tell me :)
这篇关于崇高的文本正则表达式查找和替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文