Points: 53075

8/17/2014 10:15:12 PM

Regex - match part of a URL querystring

* This article, and all our great .NET Development documentation, Is available on the .NET Development menu

I struggle mightily with Regex, so every time that I achieve something I blog it.

Today, I wanted to look into the URL of a web site and remove part of the query string. Specifically, in these cases:

I wanted to remove the 'userid=xxxxx' out of the url.
Version: Unknown or N/A
Section: .NET Development
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables