---
title: anchorsMatchLines
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsregularexpression/options-swift.struct/anchorsmatchlines
---

# anchorsMatchLines

Allow ^ and $ to match the start and end of lines.

## Declaration

```swift
static var anchorsMatchLines: NSRegularExpression.Options { get }
```

## See Also

### Constants

- [caseInsensitive](foundation/nsregularexpression/options-swift.struct/caseinsensitive.md)
- [allowCommentsAndWhitespace](foundation/nsregularexpression/options-swift.struct/allowcommentsandwhitespace.md)
- [ignoreMetacharacters](foundation/nsregularexpression/options-swift.struct/ignoremetacharacters.md)
- [dotMatchesLineSeparators](foundation/nsregularexpression/options-swift.struct/dotmatcheslineseparators.md)
- [useUnixLineSeparators](foundation/nsregularexpression/options-swift.struct/useunixlineseparators.md)
- [useUnicodeWordBoundaries](foundation/nsregularexpression/options-swift.struct/useunicodewordboundaries.md)
