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

#### Beschreibung

Extracts and returns the first match of the regular expression in the string.

#### 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 extract</p></td></tr></table>

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

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

#### Beispiel

| `xxx` |
| --- |
