coding180 icon
Coding180

write a reg expression that confirms the email ID using the Python re module?

Home > Interviews > Python


robort - 2022-08-30 09:54:15

Python has a regular expression module re. See expressions that can .com the email IDs of and subdomains .re

import re
print(re.search(r"[0-9a-zA-Z.]+@[a-zA-Z]+\.(com|co\.in)$","coding180@gmail.com"))

 


user

Robort Gabriel

Lagos, Nigeria

Freelance Web Developer, Native Android Developer, and Coding Tutor.

Skills
  • UI / UX
  • JavaScript
  • Python
  • PHP
  • Kotlin
  • Java
  • Bootrap
  • Android
  • Laravel