my ($f,$l) = /^(.).*(?<=(.))/s; [download]
my $f = substr($_, 0, 1); my $l = substr($_, -1, 1); [download]
In reply to Re: regex for string by ikegami in thread regex for string by saranperl