# RegExpIndices

`import { RegExpIndices } from "destack:regexp";`

Match spans produced by the `d` flag.

```ds title="RegExpIndices"
export struct RegExpIndices {
    match: RegExpSpan;
    captures: readonly (RegExpSpan | undefined)[];
    groups: RegExpIndexGroups;
}
```

[language/library/src/regexp/regexp.ds:24:33](https://github.com/destack-sh/destack/blob/main/language/library/src/regexp/regexp.ds#L24-L33)

## Members

### `match: RegExpSpan`

The full match span.

### `captures: readonly (RegExpSpan | undefined)[]`

The capture spans.

### `groups: RegExpIndexGroups`

The named capture spans.
