Reconsider the regex

ParseInt is pretty un-reliable with that regex. Just stripping out  alphabetical characters and leaving the actual dimensions would be better, maybe less versatile, but definitely more robust