in reply to Code in regexp

(1) the source of the warning
According to perldiag
%s matches null string many times (W regexp) The pattern you've specified would be an infinite loop if the regular expression engine didn't specifically check for that. See the perlre manpage.

HTH

_________
broquaint