Camel on Spring-Boot: simple expression with regex causes java.lang.IllegalArgumentException: name must be specified and not empty

Solution In Progress - Updated -

Issue

The following simple expression with replaceAll and a regex (to remove tags like ):

.setProperty("testString", new SimpleExpression("${exchangeProperty.testString.replaceAll('<[^>]+>','')}"))
Causes an IllegalArgumentException. Other regular expressions work; it appears the presence of the '<' character causes the issue.

Environment

  • Red hat Camel on Spring-Boot
    • 3.14

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content