---
title: verticalWhitespace
framework: swift
role: symbol
role_heading: Type Property
path: swift/regexcomponent/verticalwhitespace
---

# verticalWhitespace

A character class that matches any element that is classified as vertical whitespace.

## Declaration

```swift
static var verticalWhitespace: CharacterClass { get }
```

## Discussion

Discussion This character class is equivalent to \v in regex syntax.

## See Also

### Matching whitespace and line endings

- [horizontalWhitespace](swift/regexcomponent/horizontalwhitespace.md)
- [newlineSequence](swift/regexcomponent/newlinesequence.md)
- [whitespace](swift/regexcomponent/whitespace.md)
