Re: Search & Replace



On Jul 29, 2007 patrick j wrote:

That is extremely well spotted of you. I'm going to take this to the higher
beings at the BBEdit talk email list and see what they say.

I'll report back...

Hi dorayme

Talk about this for service, I have the answer to this one from a higher
being at the BBEdit talk list.

Apparently \f (formfeed), like \t (tab), \r (carriage return), etc., are
character constructs and not part of grep.

So, these need to be escaped regardless of whether "Use Grep" is checked as
it's not a regular expression (grep) thing.

To find a string containing "\f", you have to escape the backslash:

Find: \\f

This is regardless of "Use Grep" check box.




--
Patrick - Brighton, UK
If you wish email me from my web-site: <http://www.patrickjames.me.uk>

.



Relevant Pages

  • Re: Search & Replace
    ... patrick j wrote: ... but it would mean that with "Use Grep" unticked you ... You can copy and paste the return character in but I can't see how you ... I want simple and am not getting a pure ...
    (comp.sys.mac.apps)
  • Re: 2004 wildcard fix-good and bad
    ... is looking for "a paragraph mark" (which is not a character, ... >> pipe the text to BBEdit or grep through AppleScript. ... I just noticed a possible unfixed wildcard bug. ...
    (microsoft.public.mac.office.word)
  • Re: 2004 wildcard fix-good and bad
    ... Just a few bug fixes. ... > pipe the text to BBEdit or grep through AppleScript. ... I just noticed a possible unfixed wildcard bug. ...
    (microsoft.public.mac.office.word)
  • Re: Search & Replace
    ... beings at the BBEdit talk email list and see what they say. ... character constructs and not part of grep. ... these need to be escaped regardless of whether "Use Grep" is checked as ... To find a string containing "\f", you have to escape the backslash: ...
    (comp.sys.mac.apps)
  • Re: Emacs Wizards
    ... > find and replace with grep using the selected ... in BBEdit it is Tools->Un/Comment. ... No shortcut key by ... expire 5 years after the author's death, or in 30 years, ...
    (perl.beginners)