v1.1.0
Convret from Vim's regular expression format to Javascript's RegExp.
Attributes
Includes Deno configuration
Repository
Current version released
5 months ago
Dependencies
std
Versions
deno-vim-regexp
This module provides a conversion from Vim’s regular expression format to Javascript’s RegExp.
Example
import { VimRegExp } from "https://deno.land/x/vim_regexp@VERSION/regexp.ts";
const regex = new VimRegExp(
"\\k\\+",
{
iskeyword: "@,48-57,_,192-255",
flags: "i",
},
);
console.log(regex.test("Foo")); // Output: true
console.log(regex.test("!!!")); // Output: false