20,741
edits
Line 235: | Line 235: | ||
== Genetic Expression solver == | == Genetic Expression solver == | ||
[[File:Instant-cquotes-genetic-regex-solving.png|thumb|Screenshot showing the instant cquotes script with integrated regex solving support using genetic algorithms.]] | [[File:Instant-cquotes-genetic-regex-solving.png|thumb|Screenshot showing the instant cquotes script with integrated regex solving support using genetic algorithms.]] | ||
The genetic-js framework has been integrated, it is intended to help solve xpath/regex expressions procedurally using genetic algorithms/programming. The idea is to provide a set of desired outputs, available input data, and use existing (possibly outdated) regex/xpath expressions to seed a pool with potential solutions for retrieving the desired output. For now, this is just proof-of-concept, i.e. just an experiment. | |||
The basic idea is to run a fitness function and score regex expressions based on not throwing an exception (which makes them valid), and by checking if the desired tokens are part of the output string. | |||
* http://regex.inginf.units.it/how.html | * http://regex.inginf.units.it/how.html |