问题
In sublime text, I need to replace all instances of:
rs('???????')
with
$rs['??????']
(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.
How is this possible.
回答1:
Find regex:
rs\('(.*?)'\)
Replace:
$rs['$1']
Beware that this will expect anything inside the quotes; if it isn't what you need, please tell me :)
来源:https://stackoverflow.com/questions/17617961/sublime-text-regex-find-and-replace