Given some strings, is there some algorithm (and program that implement such an algorithm) that can create a regex which matches some of the given strings and not the other given strings?
I like the regex can generalize well on other strings not given (just like machine learning algorithms)
I am not restricted to any particular regex flavor. Thanks.