Regular Expression - SPAM Block URL

I need a regular expression that do detect a URL that contains a file ending with certain extensions, example below:
http://54.200.175.233/boleto/NF4354.zip
http://example.org.br/ex.zip
https://example.com.br/teste.exe
What better way to prepare this regular expression that detects various formats that URL?
Thank you
Marcelo
fmarcelo14Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mark_harris231Connect With a Mentor Commented:
Agree with dan_blagut - you can see an example very close to what you want at the top of page 291  (NOTE: page numbers reference the numbers printed on the page, not the PDF page count).

This should do what you want:

http://.*?\.(exe|bin|zip)

Points to Dan...
0
 
dan_blagutCommented:
Hi

did you try some pattern like http://*.exe or http://*.zip? What antispam do you use?

dan
0
 
fmarcelo14Author Commented:
Hi,
I have AntiSpam Ironport and I need use regular expression, your suggestion does not meet the format of regular expression.
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
dan_blagutCommented:
0
 
Derek JensenCommented:
you might also need to escape your //'s (to avoid delimiter errors):

http:\/\/.*?\.(exe|bin|zip)

Open in new window

0
 
dan_blagutCommented:
Thank's Mark
0
All Courses

From novice to tech pro — start learning today.