How long are the pattern chunks, and could you scan the string piece by piece?
For example, if you simplify your operation into searching for '123456' in a loop, then you could do a reverse regex and search for the string in the pattern (while changing 'x' to '..?')
In reply to Re: "Inverse" Pattern Matching
by Anonymous Monk
in thread "Inverse" Pattern Matching
by hdb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |