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.
オートマトン正規表現と最小文字列長(int)を受け入れ、可能な文字列を生成できるようなプログラムをJavaで作成するにはどうすればよいですか?
正規表現の例は次のとおりです。
regex possible strings (a+b)* abbababababbbab ab(a+b) ababababab, abaaaa, abbbbb, abbaba, . . .
この投稿で言及されているこのライブラリ(ランダムで一致する文字列を生成すると思います)はおそらく有用です
正規表現を使用して文字列を一致させるのではなく生成する