in reply to Insert comma after every character
\d stands for digit. You might rather use this expression:
It places a comma between any two characters but not at newlines or start/end of string ass/(?=.)(?<=.)/,/g
would do.s//,/g
|
---|
In Section
Seekers of Perl Wisdom