From: Hal Fulton Date: 2004-09-23T04:39:07+09:00 Subject: Re: not greedy enough David A. Black wrote: > I think what you want is: match one or more consecutive occurrences > of -\n, stopping when one of them has an extra \n at the > end. > > Try this and see if it's close to what you need: > > /(^\ *-.*\n)+\n/ Umm... in the regexp as in the other, isn't an m needed at the end? Hal