jeudi 28 décembre 2017

How can I Speedup Regex to find Image Urls

I would like to be able to browse web pages for pictures. The regex that I have done works, but it is very slow and needs some steps. The data types should be able to be extended later. Maximum 10 pieces at once. Do you have an idea? Happy new year and thanks for the help!

This is my currently Regex:

([\-\_\/\.\:\d\w\\]{1,})\.(jpeg|jpg|png|gif|tiff|psd|bmp|cr2)

Desired result output:

http://ift.tt/2C2BLgz
http://ift.tt/2zGElmr
./xxxxxx/xxxx.jpeg
/xxxxxx/xxxx.gif
xxxxxxx.jpeg




Aucun commentaire:

Enregistrer un commentaire