marcas91 / xeger

Automatically exported from code.google.com/p/xeger
0 stars 0 forks source link

Doesn't work for some regular expression #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download included jUnit-Testcase, place in src/test/java/nl/flotsam/
xeger and run test.
2. Check the values for the tests where xeger fails

Expected output?
For every possible java regex a random string that matches the regex.

What do you see instead?
That the library only supports a certain very restricted subset of the 
possible regular expression java.util.regex.Pattern understands.

Actually it also supports regular expressions which aren't supported in 
java.

Either you should provide info on what kind of regular expressions xeger 
supports (hint:http://www.brics.dk/automaton/doc/index.html?dk/brics/
automaton/RegExp.html).

Or fix the library (extend the used automaton library?) to support the yet 
unsupported parts of the java regular expression syntax.

I'm using revision 4 from SVN and java 1.6

Original issue reported on code.google.com by obhvsbyp...@gmail.com on 20 Oct 2009 at 11:28

Attachments:

GoogleCodeExporter commented 8 years ago
Spot on. I think the only thing I can do for now is add more documentation on 
what is supported and what isn't. 

Original comment by wilfreds...@gmail.com on 26 Nov 2009 at 9:08

GoogleCodeExporter commented 8 years ago

Original comment by wilfreds...@gmail.com on 26 Nov 2009 at 9:09

GoogleCodeExporter commented 8 years ago

Original comment by wilfreds...@gmail.com on 26 Nov 2009 at 9:10

GoogleCodeExporter commented 8 years ago
Added a note on the frontpage.

Original comment by wilfreds...@gmail.com on 26 Nov 2009 at 9:19