Skip to content

Commit 90c86fd

Browse files
authored
Mention capture group for regex pii scrubbing (#15660)
1 parent 460e620 commit 90c86fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/security-legal-pii/scrubbing/advanced-datascrubbing.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Rules generally consist of three parts:
5858
- For case-insensitivity, prefix your regex with `(?i)`.
5959
- If you're trying to use one of the popular regex "IDEs" like [regex101.com](https://regex101.com/) select the Rust dialect.
6060
- Escape using `\`, e.g. `\*` is a literal `*`. This works for any of the following characters: `\.+*?()|[]{}^$`.
61+
- If you want to replace a substring of a specific search string, wrap it in `()` and check "Only replace first capture match".
6162

6263
- _Credit Card Numbers_: Any substrings that look like credit card numbers.
6364
- _Password Fields_: Any substrings that look like they may contain passwords. Any string that mentions passwords, auth tokens or credentials, any variable that is called `password` or `auth`.

0 commit comments

Comments
 (0)