Java doesn’t work with regex \s, says: invalid escape sequence

You need to escape the slash

start_from  = start_from.replaceAll("\\s", "+");

Leave a Comment