I have an input string value as below and would like to split on non-numeric literals like whitespace, characters,new line, comma, period, slashes, backslashes, etc.
For example my input value would be:
var list =
'123
456 789
1234..5678//999
123aaa456'
I want the output value to be: 123, 456, 789, 1234, 5678, 999, 123, 456
I try to split it using the regex below but it keeps stopping on the second number...
var split= list.split(/[\s\t.,;:]+/);
Could anyone please help me? Thanks in advance.
/\D+/=== non-numeric