in reply to Re: I think regex Should Help Here... but How!?
in thread I think regex Should Help Here... but How!?

This from ozboomer's OP

if ($str =~ /^$buf/i) { ... }
indicates a case-insensitive match is required, so index would not be appropriate.