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

# asciiOnlyDigits(_:)

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

## Declaration

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

## Return Value

Return Value The modified regular expression.
