in reply to remove chars with regex

To get the output you want, you don't need any look-arounds:
my ($start, $end) = $char =~ /^(\S{6}).*(\S{6})$/;

Note that it's six characters, not five. Also, don't forget to check the length of the string, as shorter strings won't match at all.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]