---
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: match (text, regex)
layout: subsection
---

## Description

Returns true if the entire input text matches the regular expression. Otherwise, returns false.

If either `text` or `regex` are null, returns false.

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

`boolean`

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

```
regex:match(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 with the input string.</td></tr></tbody></table><br/>

<b>Examples</b>

`regex:match('ABCDEF', '[a-zA-Z]+')`

Returns `true`.

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

Returns `false`.

