Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sentence generation

807569May 16 2006 — edited May 16 2006
Hi,

I'm looking for a library / piece of code that can generate all possible sentences that conform to a given (simplified) regular expression.
i.e.:
Foo[abc]Bar[0-9]

would generate:
FooaBar0
FooaBar1
...
FooaBar8
FooaBar9
FoobBar0
....
FoocBar8
FoocBar9

Yes this can get very large very fast but thats ok. Is there anything out there?

thanks
Jurgen Voorneveld
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2006
Added on May 16 2006
18 comments
258 views