tags:

views:

36

answers:

2

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?

+2  A: 

[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
Already edited, thanks!
Ben S
+2  A: 

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

chrispix