3 ms·
The negation (complement) of a regular language is always regular. So in the CS theory sense, these are still regular expressions. However, while regular langua
by rntz 10y ago
The negation (complement) of a regular language is always regular. So in the CS theory sense, these are still regular expressions. However, while regular languages correspond to finite automata, the transformation which negates a NFA is not very easy to describe, which is one reason regular expression matching libraries have rarely included negation proper as an operation. Implementing negation proper using backtracking is somewhat easier, but quite expensive if done naively.