Connecting Tech Pros Worldwide Help | Site Map

how to replace . with ..\

Newbie
 
Join Date: Jul 2008
Posts: 5
#1: Jul 2 '08
Hi all,

Please look at below eg.

..abc\efg.

in this I want to replace only last . (dot) with ..\ (double dot slash)

So can anybody help on this...It will be greatly appreciated

Thanks,
Raju
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,567
#2: Jul 2 '08

re: how to replace . with ..\


What have you tried so far to do this? This is a learning forum and I would not want to take the opportunity to figure it out away from you. We can certainly help you, but please show us what code you have tried thus far.

Regards,

Jeff
nithinpes's Avatar
Expert
 
Join Date: Dec 2007
Posts: 400
#3: Jul 3 '08

re: how to replace . with ..\


You need to escape '.' and '\' using backslash(\) to remove thier special meaning inside pattern match.
Reply