Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Java 中创建可以接受自动机正则表达式和最小字符串长度(int)并生成可能的字符串的程序?
正则表达式的例子是
regex possible strings (a+b)* abbababababbbab ab(a+b) ababababab, abaaaa, abbbbb, abbaba, . . .
这篇文章中提到的这个库(我相信它会生成一个随机的匹配字符串)可能有用
使用正则表达式生成字符串而不是匹配它们