Here is the case: I want to find the elements which match the regex...
targetText = \"SomeT1extSomeT2extSomeT3extSomeT4extSomeT5extSomeT6ext\"
I did this in a console session (Chrome).
> let reg = /[aeiou]/g; undefined > let text = "autoeciously"; undefined > matches = text.matches(reg); (7) ["a", "u", "o", "e", "i", "o", "u"] > matches.forEach(x =>console.log(x)); a u o e i o u