Search code examples
regexurl-rewritingjava-ee-6

Regex for UrlRewriteFilter Tockey


I need a regex for this String below:

"/pc020025/verificarStep.do?jsessionid=a875ac311ac8827937575dbcf5843&STEPNAME=ST000002"

I'm making this but not this is correct in urlrewrite.xml

<from>^/pc020025/verificarStep.do\?jsessionid=([a-z0-9]+)\&STEPNAME=ST000002$</from>

I'm using UrlRewriteFilter of the Tockey.

Thank's


Solution

  • Try use this string for your regex ^/pc020025/verificarStep.do(\w)jsessionid=([a-z0-9]+)(\w)([a-zA-Z])=ST000002$