RegEx

From Braindisconnect
Jump to: navigation, search

Comma without white space after it

/,(?!\s)/

PHP Usage Example:

$array = preg_split('/,(?!\s)/', $string);