Produce a regular expression pattern in Python that validates emails.
Not applicable
import re

def validate_email(email):
  email_regex = r'^[\w\.-]+@[\w\.-]+\.\w{2,4}$'
  return re.match(email_regex, email) != None