---
title: ".RegexReplace (.string Objektmethode)"
---
[TOC]

#### Beschreibung

Replaces all occurrences of the regular expression in the string with the Replacement.

#### Argumente

<table style="table-layout: fixed; width: min(100%, 529px);"><colgroup><col style="width: 21.4%"><col style="width: 19.7%"><col style="width: 59.0%"></colgroup><tr><th><p><strong>Name</strong></p></th><th><p><strong>Typ</strong></p></th><th><p><strong>Beschreibung</strong></p></th></tr><tr><td><p>Pattern</p></td><td><p><a href="http://manuals.swissmains.com/display/smtschool/string">string</a></p></td><td><p>the regular expression pattern to replace</p></td></tr><tr><td><p>Replacement</p></td><td><p><a href="http://manuals.swissmains.com/display/smtschool/string">string</a></p></td><td><p>the replacement string (supports back-references)</p></td></tr></table>

#### Rückgabewert [string](http://manuals.swissmains.com/display/smtschool/string)

the string with all regex matches replaced

#### Beispiel

| `xxx` |
| --- |
