问题
I have a table (>1Mio rows) with string data, from which I need to extract the patterns. That is, if the first row containts the value 'US003TX' it should generate the pattern [A-Z]{2}\d{3}[A-Z{2} If he search finds a new value it should genderate the next pattern. The pattern can be a regex or some pther pattern description. Is there an (existing) algorithm or library for this? preferrably in c# or .NET.
来源:https://stackoverflow.com/questions/35989564/generate-regular-expressions-from-strings