---
url: /flow/guide/scripting-reference/functions/string/matchesmask.md
---

# MatchesMask

## Declaration

`Function MatchesMask( const String, Mask : string) : Boolean`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := MatchesMask('09 476 3569','99 999 9999'); //returns true
end;
```

## Description

Checks a string to see if it matches a mask. This can be used to check that phone numbers are in the correct format. Refer to Masks for more information
