I\'d like a regex that is either X or Y characters long. For example, match a string that is either 8 or 11 characters long. I have currently implemented this like
For those of us looking to capture different lengths of the same multiple try this.
^(?:[0-9]{32})+$
Where 32 is the multiple you want to capture all lengths for (32, 64, 96, ...).
32