I am struggling with extracting numbers from a string that may contain numbers and converting them into a comma-separated value.
var stringOne = "Returned 12 string";
var extractNum = "1,2"
After successfully extracting the numbers, I need to check if any of them are greater than 1 using a regular expression. But despite trying different approaches, I haven't been able to make it work. Any suggestions on how to achieve this would be greatly appreciated! Thanks in advance!