title: AppDynamics to group REST endpoints containing UUIDs as a single business transaction
body: <p>I have a web application running on JBoss/Wildfly and using RESTEasy. I'm monitoring it with AppDynamics. I've configured my business transaction detection to use a Java Servlet.
  This just about works, but some of my REST paths contain UUIDs, for example:</p>
  
  <pre><code>/data/scenario/d345d238-e0d2-4e01-a96e-4bf11290ce1d/job
  </code></pre>
  
  <p>Each time this end-point is invoked with a different UUID, AppD treats it as a different business transaction. Is there a way to make AppD recognise UUIDs within a path, and group these into a single business transaction? Something like:</p>
  
  <pre><code>/data/scenario/{id}/job
  </code></pre>
  
  <p>I should be able to do it by applying a regex to the request's path info:</p>
  
  <pre><code>request.getPathInfo().replaceAll(
      "[0-9a-f]{8}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{12}", 
      "{id}")
  </code></pre>
  
  <p>or even just</p>
  
  <pre><code>request.getPathInfo().replaceAll("[0-9a-f\\-]{36}", "{id}")
  </code></pre>
  
  <p>but I can't figure out how to escape it properly.</p>
  
  <pre><code>${getPathInfo().replaceAll([0-9a-f\\-]{36}, id)}
  </code></pre>
  
  <p>doesn't work, and neither does</p>
  
  <pre><code>${getPathInfo().replaceAll(\[0\-9a\-f\\\\-\]\{36\}, id)}
  </code></pre>