It would have been easier to help me if I'd stated the problem more
accurately.

I am going to have some text that is HTML tags and other text that is
not. I simply want to skip over the stuff that is HTML tags. Sounds
easy-- if it's inside of angle brackets, don't change it.

Example:

<A HREF="http://www.drseuss.com/THE-CAT-IN-THE-HAT.png";>THE-CAT-IN-THE-
HAT</A> becomes
<A HREF="http://www.drseuss.com/THE-CAT-IN-THE-HAT.png";>the-cat-in-the-
hat</A>

The problem is, I can't figure out how to say "if it's in angle
brackets, don't change it." There is no telling what will be inside
those brackets.

Thanks again for your help.

c

On May 21, 11:40 pm, Maarten Sneep <[email protected]> wrote:
> Op 22 mei 2011 om 05:14 heeft ChristianBoyce <[email protected]> het 
> volgende geschreven:
>
> > But, if I have something like this:
>
> > "IT WAS A LOW-BUDGET AFFAIR and their WEBSITE ADDRESS 
> > washttp://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 washttp://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.
>
> Rightly so, urls are care insensitive. Why bother keeping the original case 
> for exactly that part?
>
> Maarten

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

Reply via email to