replace_regex method
replace_regex
Replaces all matches of the regular expression with the specified string.
def replace_regex(self, regex, new_text):
...
| Parameter | Type | Description |
|---|---|---|
| regex | str | The string contains regular expression to get strings to replace. |
| new_text | str | The string to replace all occurrences of the strings to be replaced. |
Examples
The following code sample shows how to replace text using regular expression with the specified string.
See Also
- class
Presentation - module
aspose.slides - library
Aspose.Slides