Skip to content

Instantly share code, notes, and snippets.

@chris-at-github
Created June 25, 2013 07:46
Show Gist options
  • Select an option

  • Save chris-at-github/5856707 to your computer and use it in GitHub Desktop.

Select an option

Save chris-at-github/5856707 to your computer and use it in GitHub Desktop.
preg_replace('#[/\\\\]+#', '/', $STRING);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment