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>
--- 
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