---
title: endOfSubjectBeforeNewline
framework: regexbuilder
role: symbol
role_heading: Type Property
path: regexbuilder/anchor/endofsubjectbeforenewline
---

# endOfSubjectBeforeNewline

An anchor that matches at the end of the input string or at the end of the line immediately before the end of the string.

## Declaration

```swift
static var endOfSubjectBeforeNewline: Anchor { get }
```

## Discussion

Discussion This anchor is equivalent to \Z in regex syntax.
