Home  >  Q&A  >  body text

java - 有什么库能自动生成正则?

ringa_leeringa_lee2721 days ago692

reply all(4)I'll reply

  • 怪我咯

    怪我咯2017-04-17 17:02:32

    http://regex.inginf.units.it/

    Is this helpful?

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:02:32

    Find an online tool that can generate regular expressions with just a few clicks of the mouse

    http://www.txt2re.com/

    reply
    0
  • 黄舟

    黄舟2017-04-17 17:02:32

    The principle that I can think of is probably the violent method. Speed ​​is definitely an issue, and the results also need to be questioned. In the end, you still need to confirm it in person, so it is better to learn the rules and write it yourself.

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:02:32

    You mean to generate regular expressions from certain regular sentences, right?
    Otherwise, different statements would match different patterns, and the generated regular expressions would be enough to make the universe explode, right?

    reply
    0
  • Cancelreply