help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding C style comments using isearch-forward-regexp


From: Kevin Dziulko
Subject: Re: Finding C style comments using isearch-forward-regexp
Date: Mon, 24 Feb 2003 13:48:52 -0500 (EST)

On 21 Feb 2003, Stefan Monnier <foo@acm.com> wrote:

> > The regexp /*[^\(*/\)]*/ will find C comments in a non-greedy fashion.
> > Does this help your stack problems?
> 
> It will find any comment which has no *, no /, no (, no ), and no \ in
> its text.  I don't think that's quite what you wanted, so I presume
> you slightly misunderstand the way [...] works.  Check out the
> manual again.
> 

Try: /\*[^*]*\*+\([^/*][^*]*\*+\)*/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]