On Nov 22, 2016, at 23:26, Rob Russell <[email protected] <mailto:[email protected]>> wrote: > Like photographing children and animals, grep can make one look silly.
Hey Rob, I reckon any given miscalculation can make someone look silly – the trick is to not mind too much. 😎 This pattern switches on case-sensitivity and uses Positive Look-Behind and Positive Look-Ahead assertions to discover adjacent lower-case-letters and (upper-case-letters or numbers): Find: (?-i)(?<=[a-z])(?=[A-Z0-9]) Replace with a space character. As the Perl people say TMTOWTDI <https://en.wikipedia.org/wiki/There's_more_than_one_way_to_do_it>. Like many things this level of regex is dead-simple once you know how, but learning how takes a good deal of study, practice, and some mentoring. I've been using regular expression extensively for over 20 years, and I still wouldn't call myself an expert. -- Best Regards, Chris -- 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.
