I want to match large numbers in my data but sometimes the data includes repeated zeros for emphasis rather than phone numbers. How can I identify numbers at least nine digits long and not include any numbers with repeated zeros (say, at least 5)? For example:
match: call me at 19083910893
don't match: this x1000000000
[0-9]+(?!0+) but this isn't what I need because the negative lookahead doesn't unmatch results found with the
(\d)(?!0+)\d+ works in tests but I don't really understand why.