I would like to remove jsessionid=99171C97AE28712E048E321DB6B192F3
from the string below using regex in c#
www.ploscompbiol.org/article/fetchObjectAttachment.action;jsessionid=99171C97AE28712E048E321DB6B192F3?uri=info%3Adoi%2F10.1371%2Fjournal.pone.0066655&representation=XML
I have tried
string id = id.Replace(";jsessionid=.*?(?=\\?|$)", "");
but it is not working, please help!