I think I may need a regex for this, but since I suck at regexs was hoping someone here could spare a minute to help me.
Basically I have a variable (lets name it: zippy)
and if zippy‘s value is //blah.html
I want to delete one slash from there so it becomes /blah.html
(the 2 slashes will ALWAYS be in the first two characters, IF they exist at all)
How do I do this?
Thanks!
1 Answer