I am working with a regex code which is collecting a String of 12 numbers from a textvariable between 0-9. The code I have is this:
I would like to add the or-operator (||) in this expression due to that sometimes the structure of the numbers differs. The two scenarios is:
- xxxxxxxxxxxx (12 numbers in a regular sequence)
- xxxxxxxx-xxxx (12 numbers with the character “-” before the last four numbers)
Is this possible, and how should I add this scenario to the existing example above.