I am trying to search backwards (using
?) for the beginning of a "word".
I don't mean a word in the text object sense; I mean a series of lower-case letters optionally beginning with a capital letter. The optional capital letter is stymying me.
Here are some examples showing where I want to jump to, assuming the cursor starts at the end of the line:
quick brown fox ^ ^ ^ QuickBrownFox ^ ^ ^ Quick Brown Fox ^ ^ ^ quick_brown_fox ^ ^ ^
The closest I've come up with is
?\(\U\u\)\|\L?e+ – but that doesn't work with the capital letters. I assume this is because \L matches before \U\u does.
How can I solve this?