How should I escape the following Java code, so I can use it in a Spring-EL expression?
Java:
.replaceAll("[\\p{Punct}&&[^\"|\\]|\\[|+|\\-|:|(|)|_|~|.|,|%|?]]", " ")
Spring-EL, which doesn't parse:
<int:transformer
input-channel="splitTitles"
output-channel="lowercasedTitles"
expression="payload.toLowerCase().replaceAll('[\\p{Punct}&&[^\"|\\]|\\[|+|\\-|:|(|)|_|~|.|,|%|?]]').trim()">
</int:transformer>