CKB:Examples of regular expressions used in Policy Rules

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche


Applies to:

All versions of Cryptshare Server

Symptom:

Searching for more regex examples. https://documentation.cryptshare.com/w/CSSCurrent_en:Policy_Settings#Types_of_Policy_Rules

Solution

Examples:

1. All except crypshare.com

.*?@(?!(cryptshare\.com)).*;

2. All except freemail domains:

.*?@(?!(gmail\.com)|(gmx\.de)|(gmx\.net)).*;

3. All except jane.doe@cryptshare.com

^(?!jane\.doe@cryptshare\.com)(.*);

4. All except jane.doe@cryptshare.com, jana.doe@cryptshare.com and jano.doe@cryptshare.com

^(?!(jane\.doe@cryptshare\.com|jana\.doe@cryptshare\.com|jano\.doe@cryptshare\.com)).*;

5. All from crypshare.com except jane.doe@cryptshare.com, jana.doe@cryptshare.com and jano.doe@cryptshare.com

^(?!(jane\.doe@cryptshare\.com|jana\.doe@cryptshare\.com|jano\.doe@cryptshare\.com)).*?@cryptshare\.com;