Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thank you DopeGhoti. Your expression does work but do you know why the expression I wrote doesn't? I'm wondering just in case I need to check another kind of output that I need. Commented Feb 11, 2016 at 20:23
  • I think it's because your regex checker settings on the site you linked were for perl-compatible regex, and awk uses a slightly different flavor in which, as a comment on your OP mentions, needs a lot more escaping of special characters. awk is more Cish than perlish. Commented Feb 11, 2016 at 20:46