do regex.Pattern dispatch by extending protocol