[SOLVED] [OT] regex help

2022-11-27 Thread Mike Wright
On 11/27/22 15:54, Go Canes wrote: 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 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

[OT] regex help

2022-11-27 Thread Mike Wright
Hey all, 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 but all I've managed to do