简体   繁体   中英

Search and replace many caracters in a group in VS2013

I'm looking for an expression to archive this :

Find:       resMgr.GetString("Button.Annuler")
Replace by: Labels.Button_Annuler

Actually I tried this expressions

Find:       resMgr.GetString\("(.+)"\)
Replace by: Labels.$1

The result is Labels.Button.Annuler, it does not replace the . by _

Can you help me?

You need to use two separte groups.

Find: resMgr.GetString\\("([^."]*)\\.(.*)"\\)

Replace by: Labels.$1_$2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM