in reply to Re: how to search for a pattern in a string within a certain range
in thread how to search for a pattern in a string within a certain range

you might also reduce your string to its first 8 or 11 characters (*)

8 or 10 please.

If the substring has to start within the first 8 characters, it can only extend 2 two character over the first 8. A typical Off-by-one error :-)

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re^2: how to search for a pattern in a string within a certain range