CKB:Examples of regular expressions used in Policy Rules

Aus Cryptshare Documentation
Version vom 14. Januar 2022, 13:35 Uhr von Maintenance script (Diskussion | Beiträge) (Imported from text file)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
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;