Thanks for quick reply.
This way it has deleted "\" from substring.
On printing $string i am getting
>>this is my sting "with and /slashes". put substing in quotes
But i want it this way
>>this is my sting "with \ and /slashes". put substing in quote