Jeong Jinmyeong
Jeong Jinmyeong

Reputation: 208

sublimetext3 find and replace with regex shows weird behaviour: is it my fault or bug?

I'm doing little replace job: I want to remove some double quotes that should not be there for correct syntax, in image below.

strings I want to replace

therefore I built a regex that captures such a pattern into double-quoteless one, namely

regex

however, when I run "replace all",

strings replaced

double quotes are removed as expected, but upper- and lower-case are affected weirdly, as you can see. What am I doing wrong? Is this expected result?

Upvotes: 0

Views: 28

Answers (1)

Jeong Jinmyeong
Jeong Jinmyeong

Reputation: 208

Sorry, I found it myself - if Preserve case(Alt+A in windows) is turned on, it will show such a behaviour. Turning off that solved the problem.

correct result

correct setting

Upvotes: 1

Related Questions