while (<DATA>) { s{(?:(?<=23,)|(?<=bye,)),+}{}; print; } [download]
Cheers,
JohnGG
In reply to Re^2: Find & Replace by johngg in thread Find & Replace by mantra2006