use regex to simplify find palindrome number