Possible Duplicate:
Most optimal way to parse querystring within a string in C#
I have the following url which I get as an input.
string strInput = @"http://ping.com/default.aspx?
val=88.998~98.3399&val=12.55_14.55&val=8.299&val=7.299&val=9.299";
I want to extract values 88.998 ,98.3399 and 7.299.Sometimes these values might be empty.
I tried the pattern @"(?\=<val1>\d+\~$)"
for extracting 88.998 , but it didn't work. And also I am not able to get other two values 98.3399 and 7.299.