Posts tagged as:

regex

More often than not when using NetInsight you’ll want to strip out sections of URL, rewrite parts and modify the query string.

A common task is removing session ids from the page, here is the regular expression you need to remove the session id from the following example:

URL

http://www.pickuppal.com/pup/intro.html;jsessionid=79FG987987987JGDGDK7YTTUYT

Regular Expression pattern

(;jsessionid=[0-9A-F]+)

{ 0 comments }

Sponsored links: