RegEx: text not inside

"[email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
Hello,

I've read a difficult problem:
a RegEx, that matches a string, which doesn't include a 2nd string.
foo-xxx--bar -> no match
foo-xyx--bar -> match
It should match, if "foo.+?bar" doesn't contain "xx", something like
"foo.+(?!xx)bar", but that matches always.

Any idea?

-davidoff12001
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.