I need a model for finding all of the regular expressions that would match a particular string. Basically, I need an algorithm for doing what I do to generate a regex search string from some pattern.
My purpose for this to create a list of potential regular expressions from a selection of text and order that list from least specific (i.e. string of characters with abitrary length) to most specific (i.e. the string itself) to be used in text editor.
My goal is similar to txt2re.com, but with an interface based on the afformentioned list and simultaneous highlighting of matched strings in the document. I’ve sent the author of the site an email and I am reading through Igor Krivokon’s linked question