Camel on Spring-Boot: simple expression with regex causes java.lang.IllegalArgumentException: name must be specified and not empty
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.