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 template library of regular expressions but also supports creating custom regular expressions and saving them as 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 regular expression, then click Preview. You can preview the masking effect in advance. The original text will be matched according to the regular expression on the left, and the matched results will be masked with ***.
Press Enter after entering the name to create a rule. Click Confirm, and the current rule will be successfully created.
On the Custom page, you can view all custom regular expressions. You can perform the following operations on the list:
- Filter: Filter by rule library.
- Search: Quickly locate by rule name.
- Clone: Click to quickly copy the current rule.
- Edit: Click to edit the current rule again.
- Delete: Support direct deletion or batch deletion.
Template Library¶
In Manage > Regular Expressions > Template Library, you can see all the built-in regular expression templates. Click the Clone button under the Options column to use them.
You can perform the following operations on the list:
- Filter: Filter by rule library.
- Search: Quickly locate by rule name.


