What steps will reproduce the problem?
1. Create new Xeger as outlined in code example below.
2. Run code example.
3. Output string does not match regular expression.
public static void main(String[] arguments)
{
SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
random.nextBytes(new byte[1]);
Xeger xeger = new Xeger("[m-zM-Z&&[^iolIOL]][a-zA-Z&&[^iolIOL]][0-9][a-nA-N&&[^iolIOL]][4-9]-[a-fA-F0-9]{5}-[a-zA-Z&&[^iolIOL]][4-9][a-nA-N&&[^iolIOL]][m-zM-Z&&[^iolIOL]][0-6]-[a-fA-F0-9]{5}-[a-fA-F0-9]{5}-[0-6][a-nA-N&&[^iolIOL]][a-nA-N&&[^iolIOL]][0-9][m-zM-Z&&[^iolIOL]]", random);
System.out.println(xeger.generate());
}
What is the expected output? What do you see instead?
Expected: something like "ZZ9A9-98765-Z9AZ6-A35D8-A19CE-0EN9P" or
"TW7G8-0FA9B-M8FN3-98765-ABC9E-1FJ8Q".
Actual: Something like "^]&]1&]7-DDADA-V]8m]&]3-2d8fe-BC2D4-6[]&]6^]" or
"i]^]5^]7-EcEc6-^]6[]^]1-B7eEA-0eceB-3[]A]3i]".
What version of the product are you using? On what operating system?
1.0.20091017
Java 1.7.0_05
Windows 7 Professional 64-bit
If you can get this fixed in the next few days, that would be great. I
understand, however, that it might be harder than that, in which case we'll
just have to find something else to use. I do hope we get to use this, though.
Original issue reported on code.google.com by nicholas...@puresafety.com on 24 Jul 2012 at 6:03
Original issue reported on code.google.com by
nicholas...@puresafety.com
on 24 Jul 2012 at 6:03