Finding Variations in a Words (like John, Johny, Jon, Jonathan) using regular expressions with .net
In this regular expression we are going to find out variations in a Words like John, Johny, Jon, Jonathan. Just take a look at above words they all same begining "jo".
Regular Expression Pattern
\b[jJ]o\w*\b
A description of the regular expression:
First or last character in a word
Any character in this class: [jJ]
o\w*\b
o
Alphanumeric, any number of repetitions
First or last character in a word
Sucessful Matches
John
Johny
Jon
Jonathan
joiee




