Now I'm looking for an even worse way to achieve it :)my $s = 'A3xyz45M98AB7Z9'; ($t=join'',map{/\d+/g?$_.=':':$_}split//,$s)=~s/:(\d+|$)/$1/g; print $t;
In reply to Re: Best way to put : between fields in a string
by wazoox
in thread Best way to put : between fields in a string
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |