Regular Expressions 101

Community Patterns

Find 7-letter Palindromes

1

Regular Expression
Python

r"
([a-z])([a-z])([a-z])([a-z]\3\2\1)
"

Description

Find 7 letter words that are spelled the same forwards as they are backwards.

Submitted by Christian Frost - 8 years ago