Regular Expressions 101

Community Library

x

Find all words with 5 letters last letter z

Open Workspace
  • Python
  • Match
0

Regular Expression

r"
^....z$
"

Description

Write a regular expression which would find all words which have exactly 5 letters in them, of which the last letter is a "z".

Submitted by Anonymous