Regular expression generator/reducer?

后端 未结 8 1089
感情败类
感情败类 2020-12-04 20:01

I was posed an interesting question from a colleague for an operational pain point we currently have, and am curious if there\'s anything out there (utility/library/algorith

8条回答
  •  一个人的身影
    2020-12-04 21:08

    The Aho-Corasick matching algorithm constructs a finite automaton to match multiple strings. You could convert the automaton to its equivalent regex but it is simpler to use the automaton directly (this is what the algorithm does.)

提交回复
热议问题