Displaying 1 result from an estimated 1 matches for "rex2".
Did you mean:
res2
2010 Jun 12
2
Logic with regexps
Greetings,
The following question has come up in an off-list discussion.
Is it possible to construct a regular expression 'rex' out of
two given regular expressions 'rex1' and 'rex2', such that a
character string X matches 'rex' if and only if X matches 'rex1'
AND X does not match 'rex2'?
The desired end result can be achieved by logically combining
the results of a grep using 'rex1' with the results of a grep
on 'rex2', illustrated...