in reply to Re: PLEASE HELP!!! REGEXP
in thread Get last 7 characters with regexp (was: PLEASE HELP!!! REGEXP)
$callerid =~ / # we want to match
( # and remember
. # any character
{7} # 7 times
) # stop remembering
$ # then the end of line
/x; # and that's the end of the match
In this particular case, this is overkill, but in
some cases, it can be very useful in more cmoplicated
situations.
And as all others in this thread have said, I too recommend using substr.
|
|---|