I have a Regex match string that looks like this:
^d{5,6}[_.-]d{1,3}[_.-]d{1,2}[_.-]d{1,3}$
This is to make sure the format of the string is correct; obviously it is looking for numbers separated by specific delimiters so that it will match something like this:
240967.004.03.857 (the period delimiters can also be either ‘_’ or ‘-‘).
This is working fine; however, I need to make sure that the numbers between the delimiters are not all zeroes. Zeroes can be in the numbers, just not all of the digits in the delimited parts.
What’s the best way to do this?