# @types/named-regexp-groups

> TypeScript definitions for named-regexp-groups

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/named-regexp-groups
pnpm add @types/named-regexp-groups
yarn add @types/named-regexp-groups
bun add @types/named-regexp-groups
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2018-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/named-regexp-groups
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/named-regexp-groups
- npm.io page: https://npm.io/package/@types/named-regexp-groups

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.1 (ts3.8) — 2021-12-24
- 1.0.0 (ts2.4) — 2018-03-30
- 1.0.3 — 2023-10-18
- 1.0.2 — 2023-09-23

## README

# Installation
> `npm install --save @types/named-regexp-groups`

# Summary
This package contains type definitions for named-regexp-groups (https://github.com/commenthol/named-regexp-groups/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/named-regexp-groups.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/named-regexp-groups/index.d.ts)
````ts
interface NamedRegExpExecArray extends RegExpExecArray {
    groups: { [propName: string]: string };
}

declare class NamedRegExp {
    constructor(pattern?: string | RegExp, flags?: string);

    /**
     * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
     * @param string The String object or string literal on which to perform the search.
     */
    exec(string: string): NamedRegExpExecArray | null;

    /**
     * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
     * @param string String on which to perform the search.
     */
    test(string: string): boolean;

    // Non-standard extensions
    toString(): string;

    [Symbol.replace](
        str: string,
        replacement: string | ((match: string, ...capturedGroups: string[]) => string),
    ): string;

    [Symbol.match](str: string): NamedRegExpExecArray;

    [Symbol.split](str: string): string[];

    [Symbol.search](str: string): number;
}

export = NamedRegExp;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/named-regexp-groups · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
