State your name

Report a typo

An alien from some distant planet got lost in our world. He asks you to find his compatriots and contact them. To search the Internet for them, fill the value of the regex variable with a regular expression that matches common names of the inhabitants of that planet. The names are developed according to the following rules:

  • the first symbol is an alphanumeric character
  • the second symbol is a digit
  • there may be another digit following the first one
  • the last symbol is neither a whitespace nor an alphanumeric character

Strange rules, indeed, but who are we to judge them?

Write a program in Python 3
import re


regex = ''
___

Create a free account to access the full topic