Develop an algorithm to identify palindromes using regular expression in Python.
import re

def is_palindrome(s):
    pattern = r'^[a-zA-Z0-9]*$'
    if re.match(pattern, s):
        return s == s[::-1]
    else:
        return False