A Java library for generating String from a regular expression.
A Java library for generating String from a regular expression.
-Generate Random String that match the Regex.
-Specify the min/max length of the random generated String.
-Generate a list of all Strings that matches the Regex, if the number of String that matches the Regex is greater then Integer.MAX_VALUE , the returned list will contains Strings up to the size limit of java.util.List which is Integer.MAX_VALUE (see iterator's feature in this case).
-generate a sublist of the Strings that matches the Regex based on the lexicographical order.
-Given an index 'n' , generate the n'th element in lexicographical order of the list of Strings that matches the Regex.
-Prepare an iterator that loop over all the Strings that matches the Regex. even if the set of String that matches the given Regex is infinite.
If you use Maven you can include this library to your project by adding the following dependency:
com.github.mifmif
generex
1.0.2
The list of all available versions can be found at Maven Central.
Here is the sample Java code demonstrating library usage:
…Generex is licensed under the Apache License, Version 2.0.
http://www.apache.org/licenses/LICENSE-2.0
No open issues yet, or sync has not completed.