
## set_replacement_regex(pattern, replacement) {#str_str}

Sets pattern and replacement used by find/replace operation.


```python
def set_replacement_regex(self, pattern: str, replacement: str):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| pattern | str |  |
| replacement | str |  |

### Remarks

Using this method overrides previously set pattern and replacement.


### See Also

* module [aspose.words.lowcode](../../)
* class [ReplacerContext](../)

