Hi Robert,
I see what you mean. I misread and thought the while loop was doing multiple loops so, = is fine.
As for this bit:
regex for image/gif or jpeg
regex for pdf
...the regex would be:
=~ /\.(gif|jpe?g)$/i
and
=~ /\.pdf$/i
I see what you mean. I misread and thought the while loop was doing multiple loops so, = is fine.
As for this bit:
regex for image/gif or jpeg
regex for pdf
...the regex would be:
=~ /\.(gif|jpe?g)$/i
and
=~ /\.pdf$/i