---
title: "asciiOnlyWhitespace(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/regex/asciionlywhitespace(_:)"
---

# asciiOnlyWhitespace(_:)

Returns a regular expression that matches only ASCII characters as space characters.

## Declaration

```swift
func asciiOnlyWhitespace(_ useASCII: Bool = true) -> Regex<Regex<Output>.RegexOutput>
```

## Return Value

Return Value The modified regular expression.
