Printing the last 6 characters of a field into a confirmation email
You could probably use the rules module with the "Execute custom PHP Code" option to execute a small php substr function.

You might need to enable the php filter module for this.