in reply to Re: Searching for regular expression overlaps
in thread Searching for regular expression overlaps
some things most be noted
BUT fascinating enough he shows later that he can produce a sorted output: first by length and second lexicographic.
That means one could probably create a "pragmatic" comparison of two streams, i.e. comparing the leading substrings of all solutions up to a certain length and quickly identifying "incompatible" regexes...
If there is still an overlap possible after n characters one could reject a regex for being too "similar" (potentially compatible).
Well theoretically, I won't try to implement this. .. :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Searching for regular expression overlaps
by AnomalousMonk (Archbishop) on Aug 12, 2016 at 23:23 UTC | |
by LanX (Saint) on Aug 12, 2016 at 23:56 UTC |