Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xeger doesn't recognize \p{L}, \p{Lu}, \p{N} and possibly others #22

Open
bogdan2 opened this issue Nov 7, 2016 · 1 comment
Open

Comments

@bogdan2
Copy link

bogdan2 commented Nov 7, 2016

Hello:

Just to let you know that I tried to use Xeger to generate random strings based on \p{L}, \p{N}, and \p{Lu} and they don't seem to be supported.

Is there a way to use them?

Thanks

@moodmosaic
Copy link
Owner

Thank you for reporting this!

Project Fare turns Regular Expressions into Automatons by applying the algorithms of dk.brics.automaton and xeger.

Unfortunately, I don't have an answer to your question, as Project Fare is really a port of the above Java projects. – We'd have to try \p{L}, \p{N}, and \p{Lu} in Java and compare the results.

You may use a different pattern or use a different engine to reverse the Regular Expression into an Automaton. As an example, you can use the Rex engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants