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.) I am using GREP rather than just changing case in BBEdit because I want to protect the URLs. A given chunk of text will be a mixture of upper case text, lower case text, and URLS. I'm trying to select a bunch of text, apply my GREP command, and do a "change case" that ignores URLs. I can probably get away with assuming that URLs will start with either "http://" or "www." I am trying to wrap this all up in an AppleScript, which I am comfortable with. It's GREP that I'm rather new at. Has anyone tangled with this sort of thing? I feel as if I am trying to reinvent the wheel. I can't be the first person to want to do this. Thank you very much-- -- 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>
