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

# useUnixLineSeparators

Treat only \n as a line separator (otherwise, all standard line separators are used).

## Declaration

```swift
static var useUnixLineSeparators: 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)
- [anchorsMatchLines](foundation/nsregularexpression/options-swift.struct/anchorsmatchlines.md)
- [useUnicodeWordBoundaries](foundation/nsregularexpression/options-swift.struct/useunicodewordboundaries.md)
