hi, i'm trying to replace ever digit nondigit boundary with a "," in a string. i'm trying to get \d\D to be replaced with \d,\D and the reverse \D\d with \D,\d ... i'm not having any luck.
$digiword = "123joe123" $replace = preg_replace("/(\d)(\D)/","\\1,\\2",$digiword); this ends up with $replace being 123,joe456 how can i also catch the joe456 to end up with 123,joe,456 any help would appreciated. thanks, joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php