CKB:Examples of regular expressions used in Policy Rules: Unterschied zwischen den Versionen
Aus Cryptshare Documentation
(Imported from text file) |
Keine Bearbeitungszusammenfassung |
||
(2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
== Symptom: == | == Symptom: == | ||
Searching for more regex examples. | Searching for more regex examples. | ||
[ | [[CSSCurrent_en:Policy_Settings#Types_of_Policy_Rules|Types of Policy Rules]] | ||
== Solution == | == Solution == | ||
Examples: | |||
1. All except | === Examples: === | ||
''.*?@(?!(cryptshare\.com)).*;'' | 1. All except cryptshare.com | ||
2. All except freemail domains: | |||
''.*?@(?!(gmail\.com)|(gmx\.de)|(gmx\.net)).*;'' | ''.*?@(?!(cryptshare\.com)).*;'' | ||
3. All except | |||
^(?!jane\.doe@cryptshare\.com)(.*); | 2. All except freemail domains: | ||
4. All except | |||
''^(?!(jane\.doe@cryptshare\.com|jana\.doe@cryptshare\.com|jano\.doe@cryptshare\.com)).*;'' | ''.*?@(?!(gmail\.com)|(gmx\.de)|(gmx\.net)).*;'' | ||
5. All from | |||
''^(?!(jane\.doe@cryptshare\.com|jana\.doe@cryptshare\.com|jano\.doe@cryptshare\.com)).*?@cryptshare\.com;'' | 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;'' |
Aktuelle Version vom 30. Dezember 2022, 16:56 Uhr
Applies to:
All versions of Cryptshare Server
Symptom:
Searching for more regex examples. Types of Policy Rules
Solution
Examples:
1. All except cryptshare.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;