Syntactic Confectionery Delight | |
PerlMonks |
Re: Using regex to match double letters, and only double lettersby McDarren (Abbot) |
on Dec 30, 2005 at 01:01 UTC ( [id://519915]=note: print w/replies, xml ) | Need Help?? |
You need to use capturing parentheses, and then backreference. EG:
Which gives:
See perlre for more information. Hope this helps,
In Section
Seekers of Perl Wisdom
|
|