# DotAll
{: .no_toc }

Returns or sets whether `.` in the pattern matches a line feed.

## Get

Returns a **Boolean**.

Syntax: *object*.**DotAll**

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

The default value is **False**.

## Let

Sets the value.

Syntax: *object*.**DotAll** **=** *value*

*value*
: A **Boolean**. **True** lets `.` match any character, a line feed included. **False** makes `.` match any character except a line feed.

## Remarks

As in VBScript's **RegExp**, only the line feed (`vbLf`) is excluded when the value is **False**. The carriage return (`vbCr`) and the characters U+2028 and U+2029 are matched by `.` whatever the value. [**MultiLine**](/tB/Packages/Contributed/tbRegExp/RegExp/MultiLine.md) treats all four as line terminators for `^` and `$`.

The value is applied when [**Execute**](/tB/Packages/Contributed/tbRegExp/RegExp/Execute.md), [**Test**](/tB/Packages/Contributed/tbRegExp/RegExp/Test.md), [**Replace**](/tB/Packages/Contributed/tbRegExp/RegExp/Replace.md) or [**Split**](/tB/Packages/Contributed/tbRegExp/RegExp/Split.md) makes a match. Changing it does not compile the pattern again. The flag `s` of [**Flags**](/tB/Packages/Contributed/tbRegExp/RegExp/Flags.md) reads and sets the same value.

## Example

```tb check_build check_run
Dim re As RegExp
Set re = New RegExp
re.Pattern = "a.b"
Debug.Print re.Test("a" & vbLf & "b")  ' False
Debug.Print re.Test("a" & vbCr & "b")  ' True

re.DotAll = True
Debug.Print re.Test("a" & vbLf & "b")  ' True
```

## See Also

- [Flags](/tB/Packages/Contributed/tbRegExp/RegExp/Flags.md) property -- sets this option with the letter `s`
- [MultiLine](/tB/Packages/Contributed/tbRegExp/RegExp/MultiLine.md) property -- the option for `^` and `$`
- [Pattern](/tB/Packages/Contributed/tbRegExp/RegExp/Pattern.md) property -- the regular expression
- [RegExp](/tB/Packages/Contributed/tbRegExp/RegExp/index.md) class -- overview
