fix the regexp for variables > 9