I need to remove the initial 6 characters (numbers) from a number and verify if it matches any number on a given list.
For instance, if we have a number input like:
1234567891234567
The first 6 characters extracted would be:
123456
Then I want to confirm if 123456
is equal to any of these numbers: 123456|765321|988721
.
To extract the first n
digits, I can use this pattern: \d{6}
. After that, I'll need to verify if those 6 digits match one of the numbers in the list.