Re: exclude with regular expression



fred78980@xxxxxxxxx wrote:
What is the regular expression that sees
foobar,barfoo,barbarfoo,foobabarfoo etc. but not words between {}

foobar {worda, wordb, wordc} barfoo {worda, wordb, wordc} barbarfoo
{worda, wordb, wordc} foobarbarfoo

/\b\w*(?:foo|bar)\w*\b/

Negation is not suited

Says who?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.



Relevant Pages