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