since regex are greedy, this works for me
DB<131> $_='abcdabcdabceabcdabcdabceab' => "abcdabcdabceabcdabcdabceab" DB<132> ($match)= /(.+)\1/ => "abcdabcdabce"
edit: I doubt that the answer is so simple, but this should give you a start to ask more precisely...
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: Finding repeat sequences.
by LanX
in thread Finding repeat sequences.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |