I wrote:
>
>[suggestions about performing a string replace]

Alternatively, for the reasons Steve Piercy nicely described:

>> However with a large number of files, and possibly many hands at
>> work, it is not unusual for the contents of a code block to evolve,
>> take on a life of their own and be inconsistent. In this case the
>> grep option I provided would be useful to find the first Lasso code
>> block on every page and obliterate it.

you could perform a grep search using the pattern he provided.

(I'd make the slight tweak of appending "?" to ".+" as follows:

search for:   <\?lassoscript(?s).+?\?>

to ensure the block content match isn't "greedy".)


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