Skip to content

Instantly share code, notes, and snippets.

@kayasax
Created April 29, 2015 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayasax/147b17dfc526d4f215c2 to your computer and use it in GitHub Desktop.
Save kayasax/147b17dfc526d4f215c2 to your computer and use it in GitHub Desktop.
Supprimer les espaces inutiles. Ce code permet de supprimer les successions de 2 espaces ou plus (\s+) en regex
$text –replace ‘\s+ ‘, ‘ ’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment