---
title: "RegexExtractFirst (Opus Funktion)"
---
[TOC]

#### Beschreibung

Returns the first substring of Text that matches the regular expression Pattern.

#### Argumente

<table style="table-layout: fixed; width: min(100%, 534px);"><colgroup><col style="width: 16.0%"><col style="width: 12.6%"><col style="width: 71.4%"></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>Text</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/">string</a></p></td><td><p>the string to search</p></td></tr><tr><td><p>Pattern</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/">string</a></p></td><td><p>the regular expression pattern</p></td></tr></table>

#### Rückgabewert [string](../../standard-datentypen/string.md)

the first substring matching Pattern, or empty string if not found

#### Beispiel

| `xxx` |
| --- |

#### Siehe auch

[RegexExtractAll](regexextractall-opus-funktion.md)
