in reply to Re^2: How to make sure no elements from @array are inside $scalar
in thread How to make sure no elements from @array are inside $scalar

Yes you're perfectly right, thanks for mentioning it. However I haven't told that the strings I need to check have a rather static format of:

<userid>_<8-digit-number-starting-with-9>_dp