Quote:
Originally Posted by Jellby
You actually don't need the +
Searching for a single lowercase letter (regardless of previous characters) followed by a single uppercase letter is enough.
|
Yeah, my initial response didn't have it and then I edited it straight away to include it. Why? (a) to minimise changes to hopefully help them understand the edits I made and (b) just in case the OP had some scenario which is why they put a + there in the first place. Like you I cannot think of a situation where it is needed but some books like fantasy have all sorts of weird and wonderful casing for character names etc so maybe it met a requirement.
EDIT: Nope, still can't think of a scenario for my reason (b) where ([a-z]+)([A-Z]) makes a difference compared to ([a-z])([A-Z]) not that it does any harm either. Should have left my post alone, thanks Jellby.