Perl Expresion for negate a group
I have this log:
The Foo bar, and Bar foo needs to Foo
The Bar of Bar foo Bar Foo Foo
Bar bar The Bar of Foo other Foo Bar
And I want to create a perl expresion that only select words that are not
Foo nor Bar. The result log must be:
The bar, and foo needs to
The of foo
The of other
I have this one:
^(Foo|Bar)
But it doesn't work.
No comments:
Post a Comment