Thanks for this. Now, how to tell BBEdit to leave everything that is between angle brackets alone? I know how to deal with the "greedy" matching-- but the problem is, I want to change everything that does NOT match.
I can find <.*?>, but that's not what I want to change to lower case. I want to change everything else. Maybe I should look the other way around: >.*?< and just do a special case for the top of the document. All of a sudden I >think this is solving itself. c On May 21, 11:32 pm, Webmaster <[email protected]> wrote: > Hello Christian, > > In the find field, use this: > > IT WAS A LOW-BUDGET AFFAIR and their WEBSITE ADDRESS washttp://www\.(.+?)\.com > > And in the replace field, use this: > > it was a low-budget affair and their website address washttp://www.\1.com > > That will do exactly what you want for that string. > > The periods in the URL need to be escaped, since you are > using grep. That is why I placed a backslash in front of each > of them. > > Make sure that you click in the "case sensitive" and "grep" boxes. > > WW > > At 8:14 PM -0700 on 5/21/11, ChristianBoyce wrote: > > > If I have a chunk of text like this: > > "IT WAS A LOW-BUDGET AFFAIR" it is easy for me to change the > > upper case to lower case, so it looks like "it was a low-budget > > affair". > > But, if I have something like this: > > "IT WAS A LOW-BUDGET AFFAIR and their WEBSITE ADDRESS was > > http://www.LOW-BUDGET.com" I don't want to change the URL. > > Basically, I want to leave URLs untouched. It should look like > > this: "it was a low-budget affair and their website address was > > http://www.LOW-BUDGET.com". (I want to do it all in one move-- > > select the entire chunk of text, apply the GREP command.) > > [snippity snip] -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> 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>
