--- title: "simple-regex-matcher()" slug: "string-simple-regex-matcher" updated: 2026-08-17T08:13:17Z published: 2026-08-17T08:13:17Z canonical: "docs.lobstersoftware.com/string-simple-regex-matcher" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # simple-regex-matcher() This function returns the first match from a text **a** with the regular expression **b**. For multimatches please use function "regexExtract()". ## Parameters | Parameter | Description | | --- | --- | | a | The text to which the regular expression is applied. | | b | The regular expression. | ## Example | Parameter a | Parameter b | Result | | --- | --- | --- | | This is a text1 and a text2. | a text. | a text1 |