Skip to main content
Home

@std/regexp@1.0.1
Built and signed on GitHub Actions

Utilities for working with RegExp

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
11 months ago (1.0.1)

Functions

f
escape

Escapes arbitrary text for interpolation into a regexp, such that it will match exactly that text and nothing else.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/regexp

Import symbol

import * as mod from "@std/regexp/escape";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/regexp/escape";

Add Package

pnpm i jsr:@std/regexp
or (using pnpm 10.8 or older)
pnpm dlx jsr add @std/regexp

Import symbol

import * as mod from "@std/regexp/escape";

Add Package

yarn add jsr:@std/regexp
or (using Yarn 4.8 or older)
yarn dlx jsr add @std/regexp

Import symbol

import * as mod from "@std/regexp/escape";

Add Package

vlt install jsr:@std/regexp

Import symbol

import * as mod from "@std/regexp/escape";

Add Package

npx jsr add @std/regexp

Import symbol

import * as mod from "@std/regexp/escape";

Add Package

bunx jsr add @std/regexp

Import symbol

import * as mod from "@std/regexp/escape";