# Types of Anonymizers

## Rules-based Anonymizer

The most common type of anonymizer uses pattern-matching rules to identify and replace sensitive information. Rules can be defined in several formats:

### Regex Rules

Use regular expressions to match specific patterns:

```python
import opik
from opik.anonymizer import create_anonymizer