PHP script for detecting pattern sequences?
| From: | Rob Gould | Date: | Wed, 08 Jul 2009 20:37:17 +0000 |
| Subject: | PHP script for detecting pattern sequences? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-295042@lists.php.net to get a copy of this message | ||
Can anyone tell me if there's a PHP library out there that will help me determine "pattern sequences" from a string?
Example input:
032258064516129032258064516129032258064516129032258064516129 Sequence = 032258064516129
037037037037037037037037037037037037037037037037037037037037 Sequence = 037
I know regex can help you find a pattern when you know what the pattern is already, but this is different.