So, I'm trying to minimize boolean expressions using RegEx in C.
I would need a regular expresion to match XXX AND XXX, where "XXX" is the same thing on both ends, for example, I need to match:
((p OR q) AND (p OR q))
but not match
(p AND (p OR q))
because the right side of the AND is not exacly the one on the left, so I can replace it with only
(p OR q)
I think I got the replacing bit, but I need the regular expresion to match things like the one stated.
Thanks :)