Regular Expressions¶
Regular expressions are one of the effective means to achieve data security. In Guance, you can apply them to scenarios such as snapshot sharing and sensitive data masking. Guance not only provides a ready-made regular expression template library but also supports creating custom regular expressions and saving them to a rule library for future use.
Custom¶
Go to Manage > Regular Expressions > Custom, and click Create on the right:
Enter the current rule name and the regular expression, then click Preview. You can preview the masking effect in advance. The original text will be processed according to the matching results of the regular expression on the left, with matched results masked as ***.
Press Enter after entering the name to create a rule. Click Confirm, and the current rule is successfully created.
On the Custom page, you can view all custom regular expressions. You can perform the following operations on the list:
- Filter: Filter based on the rule library to which they belong.
- Search: Quickly locate rules by rule name.
- Clone: Click to quickly copy the current rule.
- Edit: Click to edit the current rule again.
- Delete: Supports direct deletion or batch deletion.
Template Library¶
In Manage > Regular Expressions > Template Library, you can see all system-built regular expression templates. Click the Clone button under the Options on the right to use them.
You can perform the following operations on the list:
- Filter: Filter based on the rule library to which they belong.
- Search: Quickly locate rules by rule name.


