Skip to content

Difference in regex escaping #55

@aeberhart

Description

@aeberhart

Input:

"http://example.org/test{par}"

Expression:

$replace($, /{par}/, '')

Output:

java.util.regex.PatternSyntaxException: Illegal repetition near index 1
{par}
 ^
	at java.base/java.util.regex.Pattern.error(Pattern.java:2028)

should be:

"http://example.org/test"

It works as expected, if the expression escapes the curly brackets:

$replace($, /\{par\}/, '')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions