next unless $String =~ /([^\/]*\.js)/;
You may also want to use an anchor so that ".js" only matches at the end of the string instead of anywhere in the string:
next unless $String =~ /([^\/]*\.js)$/;
In reply to Re^2: Building ARRAY with grep expression NOT working
by jwkrahn
in thread Building ARRAY with grep expression NOT working
by denting24by7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |