Hi,
I don't know much about regex and need a help. I have got :
1. Original string: http://www.rediff.com/general/story/9622681/id=123
2. and I want to convert it into
http://www.rediff.com/general/story/print/9622681/id=123
See the "print". This is the only additional directory in #2.
Basically I need a way by which I can apply a RegEx to original string
(i.e. #1) and should get the desired URL as in #2.
And if this can be done in one step that would be great as I need to
create a function which should do this conversion for all these kind of
URLs.
Thanks
JM
Bruce Wood - 29 Aug 2006 21:59 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> create a function which should do this conversion for all these kind of
> URLs.
What is wrong with:
string newUrl = oldUrl.Replace("/story/", "/story/print/");
?
JM - 30 Aug 2006 09:06 GMT
Thanks.. It works..
> > Hi,
> >
[quoted text clipped - 19 lines]
>
> ?