Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 345 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 345 Bytes

java-regex-js

This simply re-exports Pattern.compile(regex).matcher(input).matches() from java.util.regex.Pattern built using scala-js

Usage

import { compile as compileRegex } from "java-regex-js";

compileRegex("f.*")("foo") // true

Thanks to https://github.com/sjrd for the fantastic implementation and helpful guidance