Is there a way to test if a regular expression "contains" another regular expression?
For example:
RegEX1 = "a.*b";
RegEx2 = "a1.*b";
RegEX1 "contains" RegEX2.
As far as I know - this can't be done, am I wrong?
Yes.
This paper contains a detailed discussion of the topic (see section 4.4).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With