Re: [OT] regex help

2022-11-27 Thread Go Canes
On Sun, Nov 27, 2022 at 6:26 PM Mike Wright wrote: > if column 1 is a "}" the line is a match > if column 1 is a " " and column 2 is not a " " the line is a match Untested - not sure if the "}" needs to be escaped. egrep '^(}| [^ ])' ___

Re: [OT] regex help

2022-11-27 Thread Todd Zullinger
Hola, Mike Wright wrote: > I have a regex I'm trying to build. A match is determined by the contents > of the first two columns. > > if column 1 is a "}" the line is a match > if column 1 is a " " and column 2 is not a " " the line is a match > > Now this seems simple