Return to Snippet

Revision: 1150
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

Initial Language