cancel
Showing results for 
Search instead for 
Did you mean: 
phlrnnr
Level 9

Wildcard Expression to match http://<url> or https://<url>

Jump to solution

Is there a way to write a wildcard expression to match a URL whether it begins with http:// or https:// ?  I'm looking for options so I don't have to have duplicate list entries for these types of things.

I know you can do http*://<URL> however, is there a way to match specifically "s" or "no s" directly after the http?

0 Kudos
1 Solution

Accepted Solutions
frank_enser
Level 12

Re: Wildcard Expression to match http://<url> or https://<url>

Jump to solution

Hi,

see Best Practices: Creating URL related list entries section "URL using matches in list". In short: regex(htt(p|ps)://www.site.com)

3 Replies
McAfee Employee

Re: Wildcard Expression to match http://<url> or https://<url>

Jump to solution

Property matches regex((http|ftp|https):\/\/.*)

image.png

best,

Michael

frank_enser
Level 12

Re: Wildcard Expression to match http://<url> or https://<url>

Jump to solution

Hi,

see Best Practices: Creating URL related list entries section "URL using matches in list". In short: regex(htt(p|ps)://www.site.com)

btlyric
Level 12

Re: Wildcard Expression to match http://<url> or https://<url>

Jump to solution

You can also do:

regex(https?://<url>)

This is slightly more efficient for https URLs than some of the other suggestions. Same level of efficiency for http URLs.

0 Kudos