What I would like to do is pass the regular express for my second parameter. For instance:
- . * \\. Txt
- . * 2010. * \\. Txt
@RequestMapping(value = "/filesCleanUp/{confParamName}/{pattern}", method = RequestMethod.GET) public ResponseEntity<String> doFilesCleanUp(@PathVariable("confParamName") String confParamName, @PathVariable("pattern") String pattern)
This is how I call the service:
- /filesCleanUp/param1/.* \\. Txt
- /filesCleanUp/param1/.* 2010. * \\. Txt
But this does not work, the template does not work correctly from the URL. For the first I get ". * \\", and for the second - ". * 2010. * \\"
I conducted other tests with different values:
Usually it is confused with characters like * or.
I am sure this is nothing, but I canβt find out. I would like to get the exact template I wrote
thanks for the help
source share