cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

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?

1 Solution

Accepted Solutions
Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 3 of 4

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)

View solution in original post

3 Replies
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 4

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

Jump to solution

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

image.png

best,

Michael

Michael Schneider
Lead Product Manager for Web Protection
(•‿•)
Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 3 of 4

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)

View solution in original post

Highlighted
Level 12
Report Inappropriate Content
Message 4 of 4

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.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community