Skip to content

Regex java external flags - #1607

Merged
arcuri82 merged 6 commits into
masterfrom
regex-java-external-flags
Jun 26, 2026
Merged

Regex java external flags#1607
arcuri82 merged 6 commits into
masterfrom
regex-java-external-flags

Conversation

@lmasroca

Copy link
Copy Markdown
Collaborator

Added support for external flag usage in Java regex. In Java the Pattern.compile method can take an integer representing the flag values, we can grab that value from the matcher in the Java client, pass it and use it to set the starting flag values for the visitor. This way we apply the external flags globally (unless overridden by flag embeddings).

@lmasroca
lmasroca requested a review from jgaleotti June 23, 2026 19:01
Comment thread core/src/main/kotlin/org/evomaster/core/parser/RegexHandler.kt Outdated
Comment thread core/src/main/kotlin/org/evomaster/core/search/gene/string/StringGene.kt Outdated
@lmasroca
lmasroca requested a review from jgaleotti June 24, 2026 00:02
Comment thread core/src/main/kotlin/org/evomaster/core/utils/RegexFlags.kt Outdated
@lmasroca
lmasroca requested a review from jgaleotti June 24, 2026 18:54
Comment thread core/src/main/kotlin/org/evomaster/core/search/gene/string/StringGene.kt Outdated
Comment thread core/src/main/kotlin/org/evomaster/core/search/gene/string/StringGene.kt Outdated
Comment thread core/src/main/kotlin/org/evomaster/core/utils/RegexWithFlags.kt Outdated
@lmasroca
lmasroca requested a review from jgaleotti June 25, 2026 16:34
@jgaleotti
jgaleotti requested a review from arcuri82 June 26, 2026 16:26
@arcuri82
arcuri82 merged commit 6f4cf01 into master Jun 26, 2026
29 checks passed
@arcuri82
arcuri82 deleted the regex-java-external-flags branch June 26, 2026 18:52
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.

3 participants