Replace All is not doing it. I need to click Replace All many times to complete this sort of search. I think that the (?R) recursive search indication might help, but I can't figure out its general syntax from the single example in the BBEdit manual.
------------------ On 9/24/11 at 8:03 AM -0600, Bucky Junior wrote in a message entitled "Re: Repeating a Grep Search Until It Fails": >Do you mean something like "Replace All"? The default keys are >Option-Command-R. > >Sometimes I want to make select changes but not all so I use command-G >to skip changing and find the next occurrence and command-T to make >the change and find the next. > >Bucky > >On Sat, Sep 24, 2011 at 6:16 AM, Marek Stepanek ><[email protected]> wrote: >> On 05.01.2011 10:03 AM, Rick Gordon wrote: >>> >>> How can I set up a grep search that will repeat looping through the >>> document until all instances have been processed? >>> >>> For instance, say I've set up markers (« and ») around target source >>> strings, and want to process thos strings to remove any characters that are >>> not ASCII, numeric, space, or hyphen. Something like: >>> >>> FIND: >>> (?<=«)(.*?)[^- A-Za-z0-9«»]+?(.*?)(?=») >>> >>> CHANGE TO: >>> \1\2 >>> >>> How can I keep it looping until no more instances are found? >>> >> >> >> I don't like the find and replace dialogue any more, which was changed a >> long while ago. First go on top of your open file (this is tricky and >> annoying, because we have had once a button: "search backwards" etc I never >> understood, why BareBones removed this). Enter your search patterns, enable >> grep, and click on "replace & find". >> >> >> marek >> >> >> -- >> ___________________________________________ >> >> the embassy for talented young musicians >> Podium International | Marek Stepanek | [email protected] >> http://www.PodiumInternational.org >> ___________________________________________ >> >> -- >> 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> >> > >-- >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> -- ___________________________________________________ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___________________________________________________ WWW: http://www.shelterpub.com -- 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>
