<?php $regExp="/(,.[^ ])/ui"; $text = "Привет,привет. Здравствуй, здравствуй,здравствуй .";
Standard input is empty
array(2) { [0]=> array(3) { [0]=> string(5) ",пр" [1]=> string(4) ", з" [2]=> string(5) ",зд" } [1]=> array(3) { [0]=> string(5) ",пр" [1]=> string(4) ", з" [2]=> string(5) ",зд" } }