Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^4: Regex to match non image urls

by muba (Priest)
on Jan 18, 2013 at 13:13 UTC ( #1014054=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Regex to match non image urls
in thread Regex to match non image urls

That said, what you are doing is conceptually broken. It is perfectly valid for an image on the web to have a URL ending with ".cgi", ".php", or even ".html". Whether something is an image or not is decided by its HTTP Content-Type header, not by the last few characters of the URL.

I couldn't agree more, sir.

That being said, I like the elegance of your code snippet.

Comment on Re^4: Regex to match non image urls

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014054]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2015-12-01 19:10 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (25 votes), past polls