From: Hal Fulton Date: 2004-09-23T04:42:13+09:00 Subject: Re: not greedy enough Hal Fulton wrote: > 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? No, sorry, ignore me. I was quite wrong. Hal