I have tried
/([A-Za-z])\1{1}/
but this finds pairs of letters. My intent is to match only paired letters, not singular and not three or more.
"caab" should match
"cdaaadc" should not match
The reason is a puzzle I have been making for personal use. More in the nature of expanding my RE chops than anything else. Please let me know if I can provide more information or if there are any solutions to this. Thank you!
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |