Hi Oops!
Just after I sent the email I see of course you want to change Corp. to Company :) That is slightly more difficult I think because the Corp. might change but if it is always the same: Find: (<col id="1">.+)Corp\.(</col>) Replace: \01Company\02 In the find expression I put \ before the full stop (period in US) "." so that it is literal and not the magic dot character which matches everything. If you want to include alternatives to Corp. such as Corporated you could do it by specifying them with alternation: Find: (<col id="1">.+)(?:Corporated|Corp\.|Inc\.)(</col) This part: (?:Corporated|Corp\.|Inc\.) is the alternation. You can keep putting options dividing them with the | (bar). Remember that the expression tries the left to right so the need to be applied with that in mind. So that "Corporated" gets a chance to be match put it before Corp. Patrick http://www.patrickjames.co.uk Begin forwarded message: > From: Patrick James <[email protected]> > Date: 19 December 2008 17:07:24 GMT > To: [email protected] > Subject: Re: Grep Pattern > > Hi > > You might like to try this: > > Find: (<col id="1">.+</)col --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. 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 specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
