VerbalExpressions / VerbalExpressions/JavaVerbalExpressions
anyOf is not matched requirements
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 243
- Avg merge
- 26m
- Merged PRs (30d)
- 1
Description
How can JavaVerbalExpressions build a simple regex like this: [\d,]+
VerbalExpression.regex().anyOf("0123456789,").oneOrMore().build()
It 's too ugly! How about this one: [a-k\s\d,]+ ?
It would be nice to add a anyOf method that can used like this:
VerbalExpression.regex().anyOf(DigitCharSet, WordCharSet, SpaceCharSet ,";:,\\").oneOrMore().build()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing VerbalExpression.regex().anyOf(String) entry point and how character sets are represented. Define how multiple character sets and literal characters should be accepted, then verify that the examples produce [\d,]+ and [a-k\s\d,]+; the issue does not name specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100