Does anyone have a tool where I can enter a region file name like R.-1.0.7rg and it will return the TOP LEFT and the BOTTOM RIGHT coordinates?

center is 0,0

so region file R.-1.0.7.rg TOP LEFT would be: 512N 512W and BOTTOM RIGHT would be 0,0

so a tool would return then so I can use them for various mods. Technically they never change so how has done the math already?