http://www.perlmonks.org?node_id=1021492


in reply to Re: Perl replacement for choice.com
in thread Perl replacement for choice.com

You don't have to capture a character at all:

$show_choices =~ s/(?<=.)(?=.)/,/g;