Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Regular Expression Help
  •  
jcooper

Messages: 65
Karma: 3
Send a private message to this user
Hi,

I'm tinkering with regular expressions in the spam filter and it's not working. This is just a test, but shouldn't the below expression match any message that contains a link to the "sg" country domain?

/\bhttps?:\/\/[^\/]*\.sg[\/|>\?]

Thanks,

Jeff
  •  
jcooper

Messages: 65
Karma: 3
Send a private message to this user
Hi again,

OK, I found one problem (new to regular expressions & didn't know they had different flavors) Sad . I tweaked it but till not working:

/*https?:\/\/[^\/]*\.sg(\/|\>|\?|\n|\r| )

I found a perl tester here http://retester.herokuapp.com/

and it works in my test but not in the filter.

Thanks,

Jeff
  •  
jcooper

Messages: 65
Karma: 3
Send a private message to this user
Previous Topic: Connect & GFI
Next Topic: Kerio Exchange Migration Error
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Mon Jun 26 22:46:34 CEST 2017

Total time taken to generate the page: 0.00415 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.