News for hackers. Stuff that matters.
Re:Automatic Generation of Regular Expressions from Examples by tlrobinson on Monday October 22, 2012 @03:09PM (#4684882)
My "optimizations" were trivial, in that they don't change the behavior of the regex at all, they just simplify it. As khafra points out, they are equivalent.

I also wasn't trying to say those simplifications should be applied between iterations of the algorithm, only at the end.

Re:Automatic Generation of Regular Expressions from Examples by mdda on Monday October 22, 2012 @06:24PM (#4685867)
Understood - and I was just making the observation that the expressions produced during the process were junky in a way that's characteristic of the way they are evolving : Mixing together two honed expressions would produce much more extreme deviations in 'children' than the offspring of two of these hairy expressions.

Not only are the expressions tending to get more accurate with each generation, but their degree of 'evolvability' is also being selected for.