mehta
mehta

Reputation: 755

Editplus replace lowercase case with uppercase

I use Editplus to find replace values. I have String in the for abc_xyz. Is there way to convert it to abcXyz (camel case) using editplus regular expression and find replace functionality?

Upvotes: 1

Views: 3459

Answers (2)

Reado
Reado

Reputation: 1452

EditPlus 4.3;

CTRL + U (Uppercase)

CTRL + L (Lowercase)

Upvotes: 1

Tai Paul
Tai Paul

Reputation: 920

The following works in Edit Plus 3.70.

Enter or check the following in the replace dialog.

  • Find what: (\w+)_([[:lower:]]{1})(\w*)
  • Replace with: \1\U\2\E\3
  • Case sensitive: unchecked
  • Regular expression: checked
  • Support \U \L \E: checked

This works fine for the example given.

If you have a variable such as has_three_words then running the replace twice will convert the variable to hasThreeWords.

Upvotes: 3

Related Questions