The pattern should work fine, but make sure that you check the "Case Sensitive" 
checkbox in the Find/Replace dialog box. By default BBEdit ignores case 
sensitivity so [a-z] will match letters of any case. You can add [0-9] to the 
second part of your pattern to add a space before the years.

([a-z])[A-Z0-9])

Hope this helps,

[fletcher]

> On Nov 22, 2016, at 9:26 PM, Rob Russell <[email protected]> wrote:
> 
> Hi grep experts,
> 
> I'm trying to convert sequences of lower case character upper case character 
> pattern to lower case <space> upper case.
> 
> Like photographing children and animals, grep can make one look silly.
> 
> specifically, I have a file full of entries like this:
> 
> "273","BoysSummerSchool2013"
> "405","Bridge Clubs"
> "30","ChristmasCard2008"
> "144","ChristmasCard2009"
> 
> 
> which I would like to convert to
> 
> "273","Boys Summer School 2013"
> "405","Bridge Clubs"
> "30","Christmas Card 2008"
> "144","Christmas Card 2009"
> 
> (brownie points for lower-digit sequence, I didn't get that far).
> 
> I expected the grep find and replace of 
> 
> ([a-z])([A-Z])
> 
> to 
> 
> \1 \2
> 
> however, this is putting the spaces after the upper case chars. Hmmmm.
> 
> Other variants make me look equally stupid.
> 
> BBEdit 11.6.2
> 
> Any assistance appreciated.
> 
> Thanks
> 
> Rob
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to