<?php $str = 'C4193A,C4198A'; $regex = '/([a-zA-Z0-9]+)/u'; echo preg_replace($regex, "'\$0'", $str);
Standard input is empty
'C4193A','C4198A'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!