On Tue, Sep 15, 2009 at 06:26:05AM -0700, Tom007 wrote: > I use this Grep Pattern > > and need to replace this snippets that are a lot in the webpage: > > FIND THIS: > > </FONT><FONT > color=#ff0000 class="vers"> > <P align=justify> n </FONT> > > AND REPLACE TO THIS: > > <span class="vers"> n </span> > > Which Grep Pattern resolve this replacement?
The original is invalid HTML, which is weird, but assuming that's really what you have, you would do something like this: Find </FONT><FONT color=#ff0000 class="vers"><P align=justify> (\d+) </FONT> Replace <span class="vers"> \1 </span> Parentheses capture parts of the original string. \1 is replaced with whatever the first parentheses captured (and so on for \2, \3...). \d+ matches 1 or more digits. 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. -~----------~----~----~----~------~----~------~--~---
