Solving the Illegal group reference Exception issue with urls containing variables

If a url is excluded by excludeResource, it still runs through the matcher, while the dollar sign is not escaped. Using a jsp variables like ${url} would throw the Illegal group reference exception. By escaping it, the plugin runs perfectly even with the variables in the url when excluded