Folks, I need to do a simple case-insensitive string search match for 'HTML' in some very large strings. A simple regex like $string =~ /html/i would do the trick, but I only care if the search text appears within the first 1000 characters of the string, and it seems very inefficient to have Perl regex test the entire thing.
Is there a way to constrain the scope (depth) of a regex search? Basically I'm looking for a better method than creating a smaller test string with substr(0, 1000).
Thanks for any suggestions,
MFN