in reply to Analysis of Regular Expressions
So in other words, a regular expression is more specific than another, if it "matches less" than that other rx.
Well, apart from the fact that this question isn't even well formulated (for instance, all the given regexes, except the first one, match an countable, infinite set of strings - and you cannot order such sets on size), I doubt the question is even computable. I don't think even if the simpler question "given two (Perl) regexes, determine whether they match the same set of strings" is computable.
Oh - yes and the computation of the "genericity/specifity" should be fast.Hahahahaha. It's a little early for April 1.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Analysis of Regular Expressions
by LanX (Saint) on Mar 17, 2010 at 11:43 UTC | |
by PetaMem (Priest) on Mar 17, 2010 at 16:46 UTC | |
by LanX (Saint) on Mar 17, 2010 at 22:18 UTC | |
by JavaFan (Canon) on Mar 18, 2010 at 00:27 UTC | |
by LanX (Saint) on Mar 19, 2010 at 13:14 UTC |