Sublime text regex find and replace

前端 未结 1 1782
广开言路
广开言路 2021-02-06 08:19

In sublime text, I need to replace all instances of:

rs(\'???????\')

with

$rs[\'??????\']

(keeping the ?????

1条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-06 09:07

    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 :)

    0 讨论(0)
提交回复
热议问题