I'm new to Regular expressions and can't seem to find out how I have to solve this:
I need a regular expressions that "allows" only numbers
, letters
and /
. I wrote this:
/[^a-zA-Z0-9/]/g
I think it's possible to strip the first /
off, but don't know how.
so #/register/step1
becomes register/step1
Who knows how I could get this result?
Thanks!