G
Guest
I'm building a test platform that includes parsing a set of URL's. This is
not part of a ASP.Net project. Otherwise I'd be posting it in that area.
Given a URL of
http://Somthing/Somthing.asp?parm1=val1&parm2=val2&parm3=val3
I'm trying to create an expression that gives me:
parm1=val1
parm2=val2
parm3=val3
As either distinct group values (Match (str).Groups) or as captures of a
group (Match (str).Groups[1].Captures)
I've tried @".*\?(.*&)*?(.*)"
but this gives me the first two parms as a single string with the last parm
being distinct. I've also tried other variations but this is the closest I've
gotten.
TIA,
Dave
not part of a ASP.Net project. Otherwise I'd be posting it in that area.
Given a URL of
http://Somthing/Somthing.asp?parm1=val1&parm2=val2&parm3=val3
I'm trying to create an expression that gives me:
parm1=val1
parm2=val2
parm3=val3
As either distinct group values (Match (str).Groups) or as captures of a
group (Match (str).Groups[1].Captures)
I've tried @".*\?(.*&)*?(.*)"
but this gives me the first two parms as a single string with the last parm
being distinct. I've also tried other variations but this is the closest I've
gotten.
TIA,
Dave