AlbaStar AlbaStar - 1 year ago 83
Javascript Question

Matching images with regex in ubot

I'm trying to match only images with same resolution using regex in ubot studio.

Sample image urls that I want to match:

but to don't match images like: or other images.
I've started with
but this is matching all images.
I need something like this:*/*/word/word/640/480/*.jpeg

Answer Source

One of your url contains word2, so your regex does not match.

Try this one http:\/\/\/Image\/.*?\/.*?\/word2?\/word\/(\d+)\/(\d+)\/.*?\.jpeg


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download