Created
July 10, 2014 07:45
-
-
Save turtlix/564d9dc0c85a9119a266 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// With PHP | |
$text = preg_replace( '|([^\s])\s+([^\s]+)\s*$|', '$1 $2', $text); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment