正则表达式 去掉#后面的字符串

 Regex regex = new Regex("#.*");
 var signedUrl = regex.Replace(url, "");
原文地址:https://www.cnblogs.com/xuguanghui/p/6007507.html