On 12 dec 2009, at 13:44, Mike E wrote:

> That's what I thought too. I tried doing a find on the entire thing
> but with no success. I can find parts of it but just not the whole.
> For example, I can find "var: 'header', "Expires: Monday, 26", etc.
> 
> Since all 1900 instances are exactly the same, I'd like to do a simple
> find and replace.

Is the whitespace the same for all instances? Did you copy the instance from 
the text, and paste into the find box?

Make sure you have grep turned _off_, as there are a few special characters in 
the text you are looking for. You will need to double up the backslashes, 
otherwise bbedit will recognise those as newlines (even with grep turned off, 
IIRC).

Maarten


> On Dec 11, 5:33 pm, Ronald J Kimball <[email protected]> wrote:
>> On Fri, Dec 11, 2009 at 01:50:34PM -0800, Mike E wrote:
>>> I really just want to find every instance of...
>> 
>>> <?lassoscript
>>>    var: 'header' = @$__http_header__;
>>>    $header += 'Expires: Mon, 26 Jul 1997 05:00:00 GMT\r\n';
>>>    $header += 'Last-Modified: ' + (date_localtogmt: (date))->(format:
>>> '%a, %d %b %Y %H:%M:%S GMT') + '\r\n';
>>>    $header += 'Cache-Control: no-store, no-cache, must-revalidate\r\n';
>>>    $header += 'Cache-Control: post-check=0, pre-check=0\r\n';
>>>    $header += 'Pragma: no-cache\r\n';
>>> ?>
>> 
>>> ...and remove it from about 1900 files. I'll take another look at the
>>> grep reference.
>> 
>> If you want to remove that exact text from each file, you don't need Grep
>> at all.
>> 
>> 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.

Reply via email to