Testing regex from stdin using grep|sed|awk – unix.stackexchange.com

Sometimes, I want to test is my regex correct. How can I do reverse regex match from stdin? F.e. I can match a string with provided regex, like: grep "\(foo\)-bar" foo bar foo-bar foo-bar #Match ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Testing regex from stdin using grep|sed|awk – unix.stackexchange.com"