Syntactic Confectionery Delight | |
PerlMonks |
Re^5: Finding repeat sequences. (only regex!)by tye (Sage) |
on Jun 18, 2013 at 21:17 UTC ( [id://1039665]=note: print w/replies, xml ) | Need Help?? |
I think I had \1 and \2 backward. Then you just have to disallow the trivial solution:
(Update: Dropped the unneeded () around \1 that I had introduced while debugging. You probably also need to change .*? to .* so you get the longest solution not the shortest.) - tye
In Section
Seekers of Perl Wisdom
|
|