I think this can be a easy way interms of using regular expression ,
$_="1and2" ; /^(.).*(.)$/; print "$1 and $2 " ;
In reply to Re: regex for string
by abubacker
in thread regex for string
by saranperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |