Need regex for 6 or 10 digit number can be start and end with space, can also be a single word in a whole string. It should not start and end with '/'.
For example:
My Zip-code is 101010. Please update.->1010109090909090 is my mobile number->909090909000/9090909090/000000/-> should not find any number9090909090->9090909090
I have tried this
\b(\d{11}|\d{10}|\d{6})\b
regex, but unable to handle 3rd situation.
