---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/ReplaceTextStrategy
---

# ReplaceTextStrategy

## Overview

`ReplaceTextStrategy` is a class in Aspose.PDF FOSS for .NET.

Configures how ReplaceText(string, string) matches and substitutes text via editor.ReplaceTextStrategy.IsRegularExpressionUsed / editor.ReplaceTextStrategy.ReplaceScope.

Properties: `IsRegularExpressionUsed`, `NoCharacterBehavior`, `ReplaceScope`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `ReplaceScope` | `Scope` | Read/Write | How many matches to replace; default ReplaceFirst. |
| `IsRegularExpressionUsed` | `bool` | Read/Write | When true, the search string is interpreted as a .NET regular expression. |
| `NoCharacterBehavior` | `NoCharacterAction` | Read/Write | Behaviour when the replacement font cannot render a character. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)