Generate regular expressions from strings

删除回忆录丶 提交于 2019-12-12 01:36:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!