This is so similar to your last question. So you want to match at most 8 characters before the sequence instead of any number of characters. Did you really not see anything relevant in perlre? What did you try?
In reply to Re: how to search for a pattern in a string within a certain range
by ikegami
in thread how to search for a pattern in a string within a certain range
by BhariD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |