sublime text 替换功能使用反向引用 replace with using

比如文字是: Hello my name is bob

find what 那里是: my name is (\w+)

replace with 那里是: my name used to be $1

点replace,就可以把文字变为: Hello my name used to be bob

 

其中$1是正则的反向引用,它引用了查找条件里的(\w+)

posted @ 2017-03-13 18:24  少年的梦  阅读(1085)  评论(0编辑  收藏  举报