Fixed regex not matching slashes/doubleslashes properly