org.apache.jasper.JasperException: java.util.regex.PatternSyntaxException: Dangling meta character ‘+’ near index 0

I try to remove “+” in the String str with this code:

str.replaceAll(“+”, “”);

it shows error:

org.apache.jasper.JasperException: java.util.regex.PatternSyntaxException: Dangling meta character ‘+’ near index 0

Leave a Reply

Your email address will not be published. Required fields are marked *