Geeks With Blogs
Skogens Blog About:Stuff :) September 2006 Entries
Regex and Altering strings
I've been involved recently in a new project to integrate the services of Multimap with our main product. One of the things I needed to do was to beable to change the parameters of a Key/Pair value in a HTTP Query string, It actually took me a little while to work it out, as I didn't know about Regex's backreferencing ability - but now I've got it, I though I'd share :) private string AlterParams(string source,string param, string newValue) { Regex r = new Regex(string.Format(@"\b(?&... ......

Posted On Wednesday, September 20, 2006 7:10 PM

Copyright © Russ Clarke | Powered by: GeeksWithBlogs.net