J
JM
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
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