Hey Rob,
Your Search/Replace patterns work over here - BUT, make sure in
the Find dialog that you have "Case sensitive" checked.
Also, here's a mod of your pattern that will also put the spaces
before the years, by accepting a number (\d) as an alternative
to the upper case letter:
Find:
([a-z])([A-Z]|\d)
Replace:
\1 \2
HTH
On 11/22/16 at 9:26 PM, [email protected] (Rob Russell) 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
--
- Bruce
_bruce__van_allen__santa_cruz__ca_
--
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.