[RESOLVED] Regex search & replace
I'm struggling a bit trying to figure out what regular expression to use for search & replace
For example, I want to replace all occurrences of text that begins with [MSG_74_ and ends with ] and add a quote " after the [ and before the ]
i.e.
msg[MSG_74_HELLO]
to
msg["MSG_74_HELLO"]
A break down of what each bit of the regex expression does would help too.
Re: Regex search & replace
You want to do this programmaticaly or you want it in Visual Studio replace window? You didn't specify.
Re: Regex search & replace
Visual Studio replace window
Re: Regex search & replace
Search for
\[MSG_74{[^\]]*}\]
Replace with
\["MSG_74\1"\]
Re: Regex search & replace
Cheers, that works great. :thumb: