in reply to
Re^3: Regex to match non image urls
in thread Regex to match non image urls
"Doesn't work" is not a problem description.
Are you sure $text is what you think it is? You can try to do a print "\n>$text<\n"; and see if it matches your expectations.
If $text is what you think it is, then how doesn't it work? What is your input, what is your expected output, what is your actual output? And with "actual output" I also mean warnings and errors. On that topic, is your script running with use strict; use warnings;?