AlbaStar AlbaStar - 5 months ago 49
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


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

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