The above code is working only for the tags which is having 2 "\\"in it,but i have to match the storage path of vob tags which will not have 2 "\\" in it.
There aren't any "\\" in the data you provided. There isn't even a single "\". Do you mean vob tags with two "/" in them?
A few other comments...
- What is a vob tag anyway, and which part of your data is the vob tag?
- Didn't you get a "^* matches null string many times in regex" warning when you ran this? I did.
- The * is special in a regexp. It means "match the previous thing zero or more times". In this case the thing is ^ - beginning of line. Your regex starts by trying to match the start of line zero or more times!
- Do you know that you're not forced to use // as regex delimiters. By using some other delimeter (eg m{} - you must include the "m") you won't have to backslash all those forward slashes.
We will try and help you, but you've got to give us a chance.