in reply to Get last 7 characters with regexp (was: PLEASE HELP!!! REGEXP)

All you need is substr

$callerid = '12345678901234567'; $last_bit = substr $callerid, -7; print $last_bit;

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print