Examples of regular expressions used in Policy Rules

Examples of regular expressions used in Policy Rules


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;
    • Related Articles

    • Maximum File Size Was Changed, but the New Limit Is Not Applied

      Problem You have changed the maximum file size in the system settings, but users are still unable to send or upload larger files. This behavior usually occurs when active policy rules are still using the old upload limits. Cause In Cryptshare, policy ...
    • Adjusting Policies

      Applies to All versions of Cryptshare Server Symptom The administrator is changing default settings (e.g. maximum size per transfer) in the Administration Interface and the changes are not taking effect. Cause Default settings are used for creating ...
    • Settings Changed, but the New Configuration Is Not Applied

      Problem You have changed a setting in the system configuration, but the new value is not applied for users or specific actions. This behavior usually occurs when active policy rules still contain different or outdated configuration values. Cause In ...
    • How to remove "Send with Cryptshare" from "Sent to" context menu

      Affected to All versions of Cryptshare for Office 365 and Outlook Situation You want to disable remove the "Send with Cryptshare" shortcut from the "Send to" context menu. Solution To remove the shortcut simply create a Group Policy. User ...
    • Transfer Manager is not shown

      Applies to All versions of Cryptshare for Outlook Symptom When starting Outlook the Cryptshare Transfer Manager is not visible and cannot be activated. Cause The Windows 10 AppLocker blocks required libraries. Solution Create a policy rule that ...