# Length
{: .no_toc }

Returns the number of characters in the match.

Syntax: *object*.**Length**

*object*
: *required* An object expression that evaluates to a **Match**.

Returns a **Long**. The property is read-only.

## Remarks

The value is the length of the matched text that [**Value**](/tB/Packages/Contributed/tbRegExp/Match/Value.md) returns. Together with [**FirstIndex**](/tB/Packages/Contributed/tbRegExp/Match/FirstIndex.md) it gives the range of the source string that the match covers.

## Example

```tb check_build check_run
Dim re As New RegExp
re.Pattern = "b+"

Dim m As Match
Set m = re.Execute("aabbbc").Item(0)
Debug.Print m.Length      ' 3
Debug.Print Len(m.Value)  ' 3
```

## See Also

- [FirstIndex](/tB/Packages/Contributed/tbRegExp/Match/FirstIndex.md) property -- the position where the match starts
- [Value](/tB/Packages/Contributed/tbRegExp/Match/Value.md) property -- the matched text
- [Match](/tB/Packages/Contributed/tbRegExp/Match/index.md) class -- overview
