highlight_regex method
highlight_regex
Highlights all matches of the regular expression with the specified color.
def highlight_regex(self, regex, highlight_color):
...
| Parameter | Type | Description |
|---|---|---|
| regex | str | The string contains regular expression to get strings to highlight. |
| highlight_color | aspose.pydrawing.Color | The color to highlight the text. |
Examples
The following code sample shows how to highlight text in a PowerPoint Presentation using a regular expression.
See Also
- class
Presentation - module
aspose.slides - library
Aspose.Slides