Hello,
Is it possible in regexp to replace different strings with different values? For instance, I am reading a URL to a specific file, and I am changing it into a corresponding folder path. So with the input file looking like this:
It needs to be changed to this:
c:\webroot\c:\webroot\
I have been able to replace the with c:\webroot\ but I am unsure on if I can use the same Regular Expression object to switch the forward slashes to backslashes. Can this be done? If not, can someone provide me with an alternate?
Thanks,
Sheel
Is it possible in regexp to replace different strings with different values? For instance, I am reading a URL to a specific file, and I am changing it into a corresponding folder path. So with the input file looking like this:
It needs to be changed to this:
c:\webroot\c:\webroot\
I have been able to replace the with c:\webroot\ but I am unsure on if I can use the same Regular Expression object to switch the forward slashes to backslashes. Can this be done? If not, can someone provide me with an alternate?
Thanks,
Sheel