Skip to content

Java regex flags: "s", "d" and "U"#1617

Open
lmasroca wants to merge 19 commits into
masterfrom
external-pr-lmasroca
Open

Java regex flags: "s", "d" and "U"#1617
lmasroca wants to merge 19 commits into
masterfrom
external-pr-lmasroca

Conversation

@lmasroca

Copy link
Copy Markdown
Collaborator

Added support for java regex flags:

  • s (DOTALL): which makes the wildcard . match any character, including line terminators (which are not matched by wildcard by default),
  • d (UNIX_LINES): with this flag only \n is considered a line terminator,
  • U (UNICODE_CHARACTER_CLASS): enables the Unicode version of Predefined character classes and POSIX character classes. This flag also implies u (UNICODE_CASE) flag.

This PR also brings a more proper implementation of AnyCharacterRxGene as opposed to using randomness.nextWordChar().

@lmasroca lmasroca requested a review from jgaleotti June 29, 2026 20:24
Comment thread core/src/main/kotlin/org/evomaster/core/search/gene/regex/AnyCharacterRxGene.kt Outdated
Comment thread core/src/main/kotlin/org/evomaster/core/search/gene/regex/AnyCharacterRxGene.kt Outdated
Comment thread core/src/main/kotlin/org/evomaster/core/search/gene/regex/AnyCharacterRxGene.kt Outdated
Comment thread core/src/main/kotlin/org/evomaster/core/utils/RegexFlags.kt Outdated
@lmasroca lmasroca requested a review from jgaleotti July 1, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants