---
category: [, Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: find (text, regex)
layout: subsection
---

## Description

Returns all substrings in the input text that match the regular expression.

## <a id="section_1"></a>Return Type

`List`

## <a id="section_2"></a>Namespace Function Syntax

```
regex:find(text, regex)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>text</td><td>The input string.</td></tr><tr><td>regex</td><td>The regular expression to match within the input string.</td></tr></tbody></table><br/>

<b>Example</b>

`regex:find('ABC123DEF', '[a-zA-Z]+')`

Returns `['ABC', 'DEF']`.

