On Thu, 17 Feb 2005 11:12:21 -0500, Anthony Chilco
<[EMAIL PROTECTED]> wrote:
> Looking at the regular expressions, it get stranger and
> stranger. Someone else wanted to delete all lines starting
> with %. Regular expressions should do it with:
> 
> ^%*$
> 
> ^% is a % at the start of a paragraph
> * is any number of characters

In normal regular expressions, * is any number _of the character it
follows_, so M* would be zero or more consecutive M's, and %* would be
zero or more %'s.

> $ a paragraph break
> 
> It doesn't work. If I try just ^%*, only the % gets deleted.
> If * represents any number of characters, that should delete
> everything.

In any case I'll try the macro, thanks!

I also went ahead and submitted this as an enhancement request.  Why
do *I* always find the bugs:-(

Thanks all,
-- 
David N. Welton
 - http://www.dedasys.com/davidw/

Apache, Linux, Tcl Consulting
 - http://www.dedasys.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to