Forum Moderators: coopster
I am trying to figure out a regular expression that matches any double letters in a word. For example,
Look (the double o's) connect (the double n's)
I think it might be pretty simple but it is baffleing me.
Thank you in advance :-)
([a-z])\1
does what you wantin GREP. You'll need to add some slashes or use the $ backref to do this in PHP, something like
([a-z])\\1
([a-z])$1