1

I use EditPlus.

This tool has a nice search option where you can search either regular text or RegEx search.

I want to search for the next Uppercase alphabet preceeded by a lowercase alphabet. What do I put in the search box for this?

Raj More
  • 47,048
  • 33
  • 131
  • 198

2 Answers2

2

[A-Z][a-z]+ should do it.

Translation: Exactly one capital letter, followed by one or more lowercase letters.

Edit: I had the relationship backwards:

[a-z]+[A-Z]+

Translation: One or more lower-case letters, followed by one or more upper-case letters.

Ben S
  • 68,394
  • 30
  • 171
  • 212
2

[a-z][A-Z] should match a lowercase character followed immediately by an uppercase character

Christopher Pickslay
  • 17,523
  • 6
  • 79
  • 92