in reply to Regex to extract number from text file

In every line in your file have only two digits, (here 12 is two digits), you can use one more way as,

[0-9]{2}

If the number of digits is not fixed, use,

[0-9]+

You can get to know from man pages. You can store the values using $1 variable.