RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 2-7 character palindrome words
Expression
(\w)(\w)?(\w)?\w?(?(3)\3)(?(2)\2)\1
Description
Matches any palindromic word of between 2 and 7 characters length. Best to use without case-sensitivity as "Noon" would not match otherwise because of the capitalisation.
Matches
aa | did | peep | minim | hallah | racecar
Non-Matches
a | Anna | detartrated
Author Rating: Not yet rated. Michael Dumas
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials