I'm using this reg ex
var regex = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/;
This is used on a field for specifying image urls, so I need the last part of the url to be either .jpg, .png, .gif etc
How can i modify the regex to test this?
Thanks
(regex used: http://blog.mattheworiordan.com/post/13174566389/url-regular-expression-for-links-with-or-without-the)

[A-Za-z]{3,9}is a joke! Forget it and write your own.