Hi Todd, On Mon, 1 Apr 2019 20:47:14 -0500 Todd Hoatson <todd.hoat...@gmail.com> wrote:
> I tried GNU grep 2.0d, using this: *\n[^#(/]*class* > > This is intended to ensure that the word class is not preceded on the line > with #, ( or /. > grep 2.0 is ancient - from 1996 - see https://ftp.gnu.org/gnu/grep/ - you should upgrade. Otherwise, I think you need ^ / caret for start of line - https://stackoverflow.com/questions/16944357/carets-in-regular-expressions . > This gave me 15 matches like: > > *UpdateStatusForm.cs:62: /// A public method to get a singleton instance of > this class and display it.* > > *UserViewSettingManager.cs:70: #region UserViewSettings class* > > *VListControl.cs:462: message = uiFontRegex.Replace(message, "$1");* > > > Why do I still get lines with (, # and / ? Is this a bug or am I doing > something wrong? > > thanks, > Todd Hoatson -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/bits/New-versions-of-the-GPL/ HP/UX is not a UNIX, and AIX is even less of it than that. — An Israeli Open Source Software Enthusiast. Please reply to list if it's a mailing list post - http://shlom.in/reply .