/ Published in: C#
![](/img/icon_sav.png?v3)
Dots match any charecter, this matches any 7 chars. You need to change that bit to match a different pattern.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private string GetAnchorPart() { string anchorExp = "[#]......."; Match anchorMatch = rex.Match(Request.RawUrl); return anchorMatch.ToString(); }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)