Grep -- How to match segment containing many lines

Sivakatirswami katir at hindu.org
Sat May 12 05:08:06 EDT 2007


I want to replace a chunk many files

<div id="linklist">
# lots of other stuff here, many lines all inconsistent
across many files##
</html>

<div id="linklist">(.*?)</html>

<div id="linklist">(.*)</html>

isn't working... I suspect because of the many lines
issue and I am having trouble finding the answer to
how to get grep to ignore line endings?

I'm sure it's really simple, but even after looking thru
BBEdit's grep help I can't find it.

TIA

Sivakatirswami
www.himalayanacademy.com





More information about the use-livecode mailing list