Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/path/globrex.ts>globrex

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function globrex
import { globrex } from "https://deno.land/std@v0.41.0/path/globrex.ts";

Convert any glob pattern to a JavaScript Regexp object

Parameters

glob: string

Glob pattern to convert

optional
unnamed 1: GlobrexOptions = [UNSUPPORTED]

Configuration object

Returns

Converted object with string, segments and RegExp object