in reply to How to make sure no elements from @array are inside $scalar
For matching at a specific position, no need to use regex, just substr.