Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Regex

Hi,

I would like to create a web exception by regex for a specific Facebook page and its content

As easy as this sounds I am having trouble with the regex I built:

^([A-Za-z0-9.-]*\.)?facebook\.com\/xxx\/([A-Za-z0-9]*)

I would appreciate if anyone can tell me what I am doing wrong.  

^([A-Za-z0-9.-]*\.)?facebook\.com\.?/



This thread was automatically locked due to age.
Parents Reply
  • Hello ,

    A Regex like this should work for you:

    • ^([a-zA-Z0-9.-]*\.)?facebook\.com\.?/FinductiveLtd*

    In this regex, It will count anything before "facebook.com", and when It matches the initial /test - anything after that will go through the exemption.

    Just a warning, this isn't a good Regex, but It should work as you expect.

    EDIT: Look at  answer, doing /xxx apparently also include everything after It.

    Thanks!

Children