Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

how to replace . with ..\

Question posted by: Raju Sathliya (Newbie) on July 2nd, 2008 11:44 AM
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
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
numberwhun's Avatar
numberwhun
Forum Leader
1,842 Posts
July 2nd, 2008
12:56 PM
#2

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

Reply
nithinpes's Avatar
nithinpes
Expert
253 Posts
July 3rd, 2008
09:27 AM
#3

Re: how to replace . with ..\
You need to escape '.' and '\' using backslash(\) to remove thier special meaning inside pattern match.

Reply
Reply
Not the answer you were looking for? Post your question . . .
182,322 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Perl Forum Contributors