Search->Use Selection For Find" worked.  Very cool! It did require v9
though.

It automatically converted it:

<?lassoscript\r\tvar: 'header' = @$__http_header__; \r\t$header +=
'Expires: Mon, 26 Jul 1997 05:00:00 GMT\\r\\n'; \r\t$header += 'Last-
Modified: ' + (date_localtogmt: (date))->(format: '%a, %d %b %Y %H:%M:
%S GMT') + '\\r\\n'; \r\t$header += 'Cache-Control: no-store, no-
cache, must-revalidate\\r\\n'; \r\t$header += 'Cache-Control: post-
check=0, pre-check=0\\r\\n'; \r\t$header += 'Pragma: no-cache\\r\\n';
\r?>

Thank you so much.
Mike

On Dec 12, 11:59 am, Patrick Woolsey <[email protected]> wrote:
> Mike E <[email protected]> sez:
>
> >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.
>
> Since this string contains character sequences corresponding to some of the
> special characters BBEdit uses in searches (namely, "\r" and "\n"), you'll
> need to escape each of these sequences by pre-pending a backslash.
>
> (See "Special Characters" in Ch. 7 of the PDF manual.)
>
> If you select the desired text and apply Search -> Use Selection For Find,
> BBEdit will automatically escape it.
>
> If you type or paste in the search string, you'll need to directly add the
> appropriate escapes.
>
> Regards,
>
>  Patrick Woolsey
> ==
> Bare Bones Software, Inc.                        <http://www.barebones.com>
> P.O. Box 1048, Bedford, MA 01730-1048

-- 
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