E-mail verification

Report a typo

What about a regular expression that checks whether a given string starts with a valid e-mail address? Let's state the following format of an e-mail address:

  • its first part can contain from 6 to 30 characters. These characters can be lowercase Latin letters, digits, hyphens -, the dot characters . , the equals sign = or underscores _
  • the second part that immediately follows the first one is always @hyperskill.org

Put your regex in the template variable.

Tip: Do not forget to escape some characters in your regex.

Write a program in Python 3
import re


template = ''
___

Create a free account to access the full topic