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,839
  • 7
  • 31
  • 48
  • 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
  • 82,434
  • 38
  • 201
  • 248
Qtax
  • 32,254
  • 9
  • 78
  • 117