I have an application where uses post comments. Security is not an issue. string url = http://example.com/xyz/xyz.html?userid=xyz&comment=Comment
What i want is to extract the userid and comment from above string.
I tried and found that i can use IndexOf
and Substring
to get the desired code BUT what if the userid or comment also has = symbol and & symbol then my IndexOf
will return number and my Substring
will be wrong.
Can you please find me a more suitable way of extracting userid and comment.
Thanks.