Skip to content

Instantly share code, notes, and snippets.

@aurora
Created June 21, 2013 10:01
Show Gist options
  • Save aurora/5830211 to your computer and use it in GitHub Desktop.
Save aurora/5830211 to your computer and use it in GitHub Desktop.
$_t = preg_replace('/((^| )([a-z]:|)\d+([^\w]|$)|[\x21-\x2f\x5b-\x60\x7b-\xff])/i', '', trim($_t));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment