Is it possible to generate an example string based on a regex pattern?

后端 未结 3 790
孤街浪徒
孤街浪徒 2021-02-05 14:12

In my application the user can enter his own regex pattern into a text box so he can force a certain input for another user/text box. Is it possible for the user to see an examp

3条回答
  •  温柔的废话
    2021-02-05 14:29

    I once needed such thing too, so I created a simple program with gui using xeger lib mentioned above. Simply run .jar from dist folder (jre is required) https://github.com/ogyct/SampleFromRegex

提交回复
热议问题