<?php $str = 'a\\\\,b,c\\,d'; $str2 = 'a\\\\,b,c\\,d'; print_r(preg_split('/(?<!(?<!\\\\)\\\\),/', $str)); print_r(preg_split('/(?<![^\\\\])(?<!\\\\),/', $str2));
You have javascript disabled. You will not be able to edit any code.