CKB:Examples of regular expressions used in Policy Rules: Unterschied zwischen den Versionen

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 7: Zeile 7:
== Symptom: ==
== Symptom: ==
Searching for more regex examples.
Searching for more regex examples.
[https://documentation.cryptshare.com/w/CSSCurrent_en:Policy_Settings#Types_of_Policy_Rules https://documentation.cryptshare.com/w/CSSCurrent_en:Policy_Settings#Types_of_Policy_Rules]
[[CSSCurrent_en:Policy_Settings#Types_of_Policy_Rules|Types of Policy Rules]]


== Solution ==
== Solution ==


=== Examples: ===
=== Examples: ===
1. All except crypshare.com
1. All except cryptshare.com


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

Version vom 30. Dezember 2022, 16:55 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;