--- title: "@std/regexp" description: "Utilities for working with RegExp" jsr: jsr:@std/regexp pkg: regexp version: 1.0.1 generated: true stability: stable --- ## Overview
Functions for tasks related to regular expression (regexp), such as escaping text for interpolation into a regexp.
```js import { escape } from "@std/regexp/escape"; import { assertEquals, assertMatch, assertNotMatch } from "@std/assert"; const re = new RegExp(`^${escape(".")}$`, "u"); assertEquals("^\\.$", re.source); assertMatch(".", re); assertNotMatch("a", re); ``` ### Add to your project ```sh deno add jsr:@std/regexp ``` See all symbols in @std/regexp on