I am looking to have a awk regular expression that can give all strings not matching a particular word.
/^((?!word \+).)*/ works in java but does not work in AWK.
Get compilation failed error, escaping the brackets fixes the compilation error, but the regular expression matching is not correct.
It would be great if any one can help with a awk regular expression .
I can not use
string" !~ /regex/
I need to use
string" ~ /regex/ regex shuould pass for all string but for a specific string.
domain should be filtered out.
This is domain test This is do test This is test
This is do test This is test
Need to do with regular expression only. Can not change the Awk code
in AWK its like
string" ~ /regex/
so can only pass a regex to achieve this.