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

\p is not supported (Character classes) #73

Closed
puskarpeter opened this issue May 5, 2023 · 2 comments · Fixed by #76
Closed

\p is not supported (Character classes) #73

puskarpeter opened this issue May 5, 2023 · 2 comments · Fixed by #76
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@puskarpeter
Copy link

Add support for character classes specified with \p.
new RgxGen("\\p{InBasicLatin}{0,255}").generate() should generate an example from Unicode characters in BasicLatin class.
Currently it fails with NumberFormatException since the expresion in {} is treated as repetition block.

Version 1.4

@puskarpeter puskarpeter added the bug Something isn't working label May 5, 2023
@curious-odd-man
Copy link
Owner

Documentation about categories
https://www.regular-expressions.info/unicode.html#category

@curious-odd-man curious-odd-man added the enhancement New feature or request label May 13, 2023
curious-odd-man added a commit that referenced this issue May 23, 2023
# Conflicts:
#	src/main/java/com/github/curiousoddman/rgxgen/nodes/SymbolSet.java
#	src/main/java/com/github/curiousoddman/rgxgen/parsing/dflt/DefaultTreeBuilder.java
#	src/test/java/com/github/curiousoddman/rgxgen/util/UtilTests.java
curious-odd-man added a commit that referenced this issue May 23, 2023
# Conflicts:
#	src/main/java/com/github/curiousoddman/rgxgen/nodes/SymbolSet.java
#	src/main/java/com/github/curiousoddman/rgxgen/parsing/dflt/ConstantsProvider.java
#	src/main/java/com/github/curiousoddman/rgxgen/parsing/dflt/DefaultTreeBuilder.java
curious-odd-man added a commit that referenced this issue May 28, 2023
# Conflicts:
#	src/main/java/com/github/curiousoddman/rgxgen/util/Util.java
@curious-odd-man curious-odd-man added this to the Version 1.5 milestone Jun 1, 2023
@curious-odd-man curious-odd-man linked a pull request Jun 1, 2023 that will close this issue
curious-odd-man added a commit that referenced this issue Jun 4, 2023
curious-odd-man added a commit that referenced this issue Jun 10, 2023
…_classes

#73. \p is not supported (Character classes)
@curious-odd-man
Copy link
Owner

Hello @puskarpeter ! This is now supported. I would very much like your feedback. You can use snapshot 1.5-SNAPSHOT to try this out.
The release 1.5 is planned as soon as I get through with few more items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants