dotMatchesNewlines(_:)
Returns a regular expression where the “any” metacharacter (.
) also matches against the start and end of a line.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
func dotMatchesNewlines(_ dotMatchesNewlines: Bool = true) -> Regex<Regex<Output>.RegexOutput>
Parameters
- dotMatchesNewlines
A Boolean value indicating whether
.
should match a newline character.
Returns
The modified regular expression.