I am handed a variable in the this format:
var fubar = e2s2
Now, the letters are always the same, but the numbers do change. The numbers can only be 1-9. The ending result I would need something like this:
var foo = e2
var bar = s2
I’d settle for just the number as well. I just have to have the digit.
Using regex with replace. following code would work