[Israel.pm] patterns findings
Yossi Itzkovich
Yossi.Itzkovich at ecitele.com
Wed Mar 18 04:10:33 PDT 2009
Hi,
I am looking for a module that will get a file with text lines, and will find repeating patterns.
Example: given the following file:
-----
I want to go home
1+3=4
Hello World
1+3=4
Hello World
8+2=10
Hello World
Klskd
-----
The script should tell me that the sequence : 1+3=4 and Hello World repeat 2 times. A better script may tell me even that the more general pattern: {number}+number}={number} and Hello World repeat 3 times.
Any suggestion?
Thanks
Yossi
More information about the Perl
mailing list