I'm just wondering if there is an algorithm to efficiently check if the language of one regular expression exists as substrings in the language of another regular expression.
The set of all strings that can be accepted (or matched) by a regular expression is the language of the regular expression.
for instance: I have two regular expressions, regex_1 = a+ab, regex_2 = xa+xaby, so language L_1 = {a, ab} and L_2 = {xa,xaby}.
We can tell that all strings in L1 are all substrings of strings in L2. All strings of the language of regex_1 should have the same "start point" as substrings in the language of regex_2 so that the behavior is performed as a whole. in this example, strings of L_1, both "a" and "ab", are all directly after "x" in L_2.
But in practice, there might be loops, and it might not be possible to simulate all traces to compare traces directly. So I wonder, how to decide in this situation.
Thanks.