in reply to Help with a regex

If you want to stick to the string operations:
my $pos = rindex( $string, '.' ); my $result = ($pos >= 0 ? substr( $string, $pos+1 ) : '' );