'Selenium IDE - Storing part of a number

I'm running into an issue where I have a random number being entered into a field and then all digits except the last 4 are being hidden.

I want to have a step checking that it is working correctly and then verify the last 4 digits. I'm using Selenium to store a temporary card to get through a payment process and need to confirm the last 4 digits of the card once it has been entered into the field.

Since the number is one variable and generated randomly I was looking for a way to potentially make a new variable with only the last 4 digits of the card

store text | css=.card-number | Number


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source