T
toulax
How can I make a regular expression that will match everything, unless
it contains a certain string then it will match nothing.
For instance, let's say it should not match "bar", then:
"foo" => "foo"
"bar " => nil
"foobar" => nil
Thanks in advance
it contains a certain string then it will match nothing.
For instance, let's say it should not match "bar", then:
"foo" => "foo"
"bar " => nil
"foobar" => nil
Thanks in advance