I need a Regular Expression to accept the URL ending with all file Types: Like "http://other-images.contenix.com/BrandAssets/55957/care_guide.pdf" or "http://upload.wikimedia.org/wikipedia/commons/9/9a/Avenger_-_Westphalian_horse.jpg" .
I have tried this: "^..(gif|jpg|jpeg|png|bmp|GIF|JPEG|JPG|PNG|BMP|Gif|Jpg|Jpeg|Png|Bmp)\s$", but this only allows only image file.
Now my requirement has changed for all File Types.
****EDIT
Can i make something like there should be a "." among the characters after the URL final slash "/"
Any Help Appreciated.
Thanks
^.*\/[^.]*\.\w+\s*$
– Avinash Raj