---
title: AnyRegexOutput
framework: swift
role: symbol
role_heading: Structure
path: swift/anyregexoutput
---

# AnyRegexOutput

The type-erased, dynamic output of a regular expression match.

## Declaration

```swift
struct AnyRegexOutput
```

## Overview

Overview When you find a match using regular expression that has AnyRegexOutput as its output type, you can find information about matches by iterating

## Topics

### Initializers

- [init(_:)](swift/anyregexoutput/init(_:).md)

### Instance Methods

- [extractValues(as:)](swift/anyregexoutput/extractvalues(as:).md)

### Subscripts

- [subscript(_:)](swift/anyregexoutput/subscript(_:)-6qdcr.md)

### Default Implementations

- [BidirectionalCollection Implementations](swift/anyregexoutput/bidirectionalcollection-implementations.md)
- [Collection Implementations](swift/anyregexoutput/collection-implementations.md)
- [RandomAccessCollection Implementations](swift/anyregexoutput/randomaccesscollection-implementations.md)
- [Sequence Implementations](swift/anyregexoutput/sequence-implementations.md)

## Relationships

### Conforms To

- [BidirectionalCollection](swift/bidirectionalcollection.md)
- [Collection](swift/collection.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [RandomAccessCollection](swift/randomaccesscollection.md)
- [Sequence](swift/sequence.md)

## See Also

### Regular Expressions

- [Regex](swift/regex.md)
- [RegexRepetitionBehavior](swift/regexrepetitionbehavior.md)
- [RegexSemanticLevel](swift/regexsemanticlevel.md)
- [RegexWordBoundaryKind](swift/regexwordboundarykind.md)
- [RegexComponent](swift/regexcomponent.md)
- [CustomConsumingRegexComponent](swift/customconsumingregexcomponent.md)
