Regular expression matching for * and .