On Sun, May 22, 2011 at 12:36:01AM -0700, ChristianBoyce wrote: > 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.
Try this: Find (<[^>]*>)?([^<>]*) Replace \1\L\2 Note that it assumes that your HTML tags do not contain unescaped angle brackets. For example, this would be a problem: <a href="foo>bar"> Ronald -- 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>
