Messaging Gateway

 View Only

 URL regex

Fabio Ferreira's profile image
Fabio Ferreira posted Feb 24, 2021 04:39 PM
Hi,

I'm having some issues getting URLs from e-mails.
I created a regex rule following the article Example regex to detect Uniform Resource Locator (URL) using Symantec Messaging Gateway
Broadcom remove preview
Example regex to detect Uniform Resource Locator (URL) using Symantec Messaging Gateway
Issue/Introduction This article contains an example for a regular expression to be used in custom patterns or content rules to detect URLs embedded in emails. Resolution The following RegEx string can be used in a Custom Pattern or Content Rule to detect URLs embedded in emails: \b(\S+\.(\S+)(\/\S+)?)\b Note: please ensure that 1-match only RegEx expressions are used with Messaging Gateway.
View this on Broadcom >


and only get the first url.

I already tried (http:\/\/[^ '"<>]*|https:\/\/[^ '"<>]*|www\.[^ '"<>]) without success.
Only get the first URL again.

Can you help?

Regards,
Fábio Ferreira