note
Ratazong
<p>TIMTOWTDI.</p>
<code>
my $str = "ABCDE";
print join(",",split(//,$str));
</code>
<p>The code above enters a comma after every character, except the last one (as shown in your example). However it does not distinguish if your character is between <c>[A..Za..z]</c>.
</p>
<p>If you want to stick to your solution (using a regex), replace <c>\d</c> by <c>\w </c>. (<c>\d</c> is for numbers.) However your solution adds a comma after the last character.</p>
<p>HTH, Rata</p>
836061
836061