Javascript – Is there a regex that will put 10 digits (usually non-consecutive) into a named capturing group?
I have a user input string that is supposed to contain at least 10 digits but they may be non-consecutive. Of these possible user inputs: "What is 12? Can we 345 the loan to 678-90" ">>123456789--0" "1234567890541112144847-909" "Maybe try 123456…