Apart from Ikegami's suggestion, you might also reduce your string to its first 8 or 11 characters (*) and then apply your pattern-matching on the reduced string. Use substr for reducing the string.
* depending whether the TTT needs to be contained in the 8 characters or not
In reply to Re: how to search for a pattern in a string within a certain range
by Ratazong
in thread how to search for a pattern in a string within a certain range
by BhariD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |