May
04
2015
Take a list of languages:
-
English
-
French
-
Spanish
-
Portugues
And you want a regex that matches everything except English
using negative lookahead
(?im)^(?!English).+$
using only
(?!English).+
will not work.