Revision: 1150
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 18, 2006 20:25 by rengber
Initial Code
private string GetAnchorPart()
{
string anchorExp = "[#].......";
Regex rex = new Regex(anchorExp);
Match anchorMatch = rex.Match(Request.RawUrl);
return anchorMatch.ToString();
}
Initial URL
Initial Description
Dots match any charecter, this matches any 7 chars. You need to change that bit to match a different pattern.
Initial Title
Regular Expression to Separate the Anchor Part of a URL
Initial Tags
url
Initial Language
C#