I've the following regex
\b(?:\d[ -]*?){5,10}\b
that works but it is also returning numbers that is part of a decimal. The correct responses are shown below but at the moment it is returning all of them. It sees the '.' as a word boundary.
12.123456 = no match
Hello John 124567 = match
12345667 = match