By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,197 Members | 977 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,197 IT Pros & Developers. It's quick & easy.

how to replace . with ..\

P: 7
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
Jul 2 '08 #1
Share this Question
Share on Google+
2 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
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
Jul 2 '08 #2

nithinpes
Expert 100+
P: 410
You need to escape '.' and '\' using backslash(\) to remove thier special meaning inside pattern match.
Jul 3 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.