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

# ignoresCase(_:)

Returns a regular expression that ignores case when matching.

## Declaration

```swift
func ignoresCase(_ ignoresCase: Bool = true) -> Regex<Output>
```

## Parameters

- `ignoresCase`: A Boolean value indicating whether to ignore case.

## Return Value

Return Value The modified regular expression.
