Need your kind help in matching some numbers patterns using regex. I have thousands of 10-digit numbers in the following patterns and need to extract them according to their patterns.
Note - I don't need spaces in between.
Pattern 1: Number: 3527 432 432 Let's consider the above number as ABCD XYZ XYZ pattern
Pattern 2: Number: 3527 89 89 89 ABCD XY XY XY
Pattern 3: Number: 35 35 35 8745 XY XY XY ABCD
Pattern 4: 5432 888 999 ABCD XXX YYY
Pattern 5: 5432 8888 99 ABCD XXXX YY
Pattern 6 5432 33 44 22 ABCD XX YY ZZ
Any kind of help in any manner is much appreciated.
I am a complete beginner in regex and know basic things.
For patterns like 5432 8888 99
I am using regex like \d\d\d\d8888\d\d
and then manually find the matching numbers from the list by changing 8888 to other digits like 1111.