Skip to main content

Celonis Product Documentation

Regular expressions for data redaction

In Task Mining, you can create custom data redaction rules to define what type of collected data should be redacted. You can manage your redaction rules using regular expressions in the Task Mining client.

You can create regular expression patterns with the help of free online tools, allowing you to turn standard text into regex. This regex is not case sensitive, meaning that you can use both upper and lowercase text can be matched to your pattern.


Regular Expression

Example - Attribute without masking

Example - Attribute with masking applied

Replace all windows usernames with ‘***’


Saplogon - TR21 - Profile a.doe

Saplogon - TR21 - Profile ***

Replace all machine names with ‘***’


System Settings - LP12392

System Settings - ***

Replace all emails with ‘***’


Outlook - Draft Mail -

Outlook - Draft Mail - ***

Replace all social security numbers with ‘***’


Adobe Acrobat - Verification 1231-21-2929.pdf

Adobe Acrobat - Verification ***.pdf

Replace non-domain part in URL


Using variables in regular expression patterns

You can also use variables provided by the Task Mining client in the regular expression patterns. This simplifies finding regular expressions, such as the Windows username on each client, instead of specifying and maintaining a list of all possible Windows usernames in the configuration centrally.

Supported variables are:




Windows username



Machine name