Created
October 27, 2010 17:37
-
-
Save zeroasterisk/649546 to your computer and use it in GitHub Desktop.
Find and Replace to add spaces after commas and before&after => within PHP
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
find: | |
(\"[^,\n\"\'\(]+\"|\'[^,\n\"\'\(]+\'|\$[a-zA-Z0-9\_\-\>]+|[0-9]+|\'\'|\"\"|null|false|true|\)|\]|\/[a-z]*),([a-zA-Z0-9\'\"\$\)\(\[]) | |
replace: | |
$1, $2 | |
find: | |
(\"[^,\n\"\'\(]+\"|\'[^,\n\"\'\(]+\'|\$[a-zA-Z0-9\_\-\>]+|[0-9]+|\'\'|\"\"|null|false|true|\)|\]|\/[a-z]*)=>([a-zA-Z0-9\'\"\$\)\(\[]) | |
replace: | |
$1 => $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment