I am working on a music generation project. Input only contains alpha characters and digits. The regex is one of the requirements we've set as a limitation.
So, this gets me numbers under 26 but if a number like 27 shows up it still picks up the 2 and the 7. How can I exclude all numbers 26 and up? Thanks!
/[0-2][0-5]|[1-9]/g
I should add...this is part of a large string with letters and spaces before and after the numbers. So I have to recognize the numbers in the string and pull them out. Only using string.prototype.match() and regex. Long story. Thx