I have several webstorage keys called in the format of GameSave[X][Y] like:

GameSave00

GameSave01

GameSave02

GameSave03

GameSave10

GameSave11

GameSave12

GameSave13

and so on

Now the X and Y after the "GameSave" are X and Y indices of an array.

How do I use Regex (or the regexreplace or other similar regex expressions) to set a general expression to value of X and Y of array?

I'm really bad at text-related expressions.

The action for array is **Set at (GameSave.CurX,GameSave.CurY) the "value"**

For example: **GameSave13**

"Value" =

Set "X" to webstorage.localvalue("GameSave" & "Insert Regex expression here for X" & "Insert Regex expression here for Y")

"GameSave" & "Insert Regex expression here for X" & "Insert Regex expression here for Y"

^this should result to GameSave13 (and all other GameSave named keys)

Anyone who can help me?

Edit:

I was just thinking of something about this:

To simplify:

for X

retrieve the 1st number after "GameSave", ignore the 2nd number (which is for Y)

for X

retrieve the 2nd number after "GameSave" and , ignore the 1st number (which is for X)

My indices are only up to 4 so having 2 digit X and/or Y is out of the question.

I'm thinking if this is possible with regex?