0

I am using Notepad++. I was wondering if I could change all occurences like the following from

DONT CONVERT ALL CAPS. TextToConvert

to

DONT CONVERT ALL CAPS. Text_To_Convert

using regular expressions in find and replace fields.

Thank you in advance.

Nick Binnet
  • 1,910
  • 7
  • 33
  • 49
  • That’s awfully similar to [this answer](http://stackoverflow.com/questions/6322906/utf8-correct-regex-for-camelcase-wikiword-in-perl/6323679#6323679), amongst many others. – tchrist Jun 13 '11 at 14:33

1 Answers1

4

Try replacing ([a-z])([A-Z]) with \1_\2.

Alex Lockwood
  • 83,063
  • 39
  • 206
  • 250
Qtax
  • 33,241
  • 9
  • 83
  • 121