I seem to be having trouble nailing down a regexp. If I have a file that
looks like this:

// class alpha

/* class beta
* class gamma
class delta
*/ class epsilon

/* some comment */ class zeta

I want it to ignore class alpha, class beta, class gamma, and class
delta. I can live with it accepting class delta even though it
shouldn't, but the other three I'd rather deal with.

This is what I have so far to figure what's a comment and what's not:

(([^\/][^\*\/])|(\*\/)|(\/\*.*\*\/))

I though the first group would mean don't start with /* or //, but the
beta is accepted. If I had ([^\*]) to it, then alpha is accepted too. 

-- 
------------------------------------------------------------------------
; Justin Georgeson                                  "free the mallocs" ;
; http://home.austin.rr.com/mastercontrol                              ;
; mailto:[EMAIL PROTECTED]                                  ;
------------------------------------------------------------------------
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to