I have 2 databases with a column in each where the data is somewhat similar. I want to pull all the data from these columns and generate a regular expression that matches the first DB's data, and a separate regex that matches the second DB's data.
Note- I want to generate this FROM analyzing the text of each DB's data.
(Not relevant): I then want to find the difference between these 2 regexes (so the cases that do not match both -- so an intersection). I would assume i do this via some kind of negation after combining the regexes for both sets of data.
I tried the usual resources (searching monks/google, SO, etc), but I couldn't find anything perl-specific for generating a regex FROM the actual data. Is there some intrinsic logical flaw in trying to generate a regex like this?
Please note, I DO have a bunch of resources I found on PerlMonks that will enable me to develop this myself, I'm mainly curious if this use case's solution is already encompassed in some module.
In reply to Generate a regex from text by porg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |