I want to match URLs of the form http://host/10.39284/LKJF283/23332/dd
(where the path will always start with 10. and the rest will be a mix of dots, slashes, letters, and numbers) and store the entire thing after and including the 10. into a PathVariable.
I was thinking I could do this with a regular expression like so:
@RequestMapping(value="/{key:10\.+}", method=RequestMethod.GET)
public String summary(@PathVariable String key, Model model) {
}
But this gives me an error saying "Invalid escape sequence". Any idea how I can accomplish this?