portable-regex

Because a word boundary is \b unless you're in Postgres where it's \y

Usage no npm install needed!

<script type="module">
  import portableRegex from 'https://cdn.skypack.dev/portable-regex';
</script>

README

portable-regex

Because a word boundary is \b unless you're in Postgres where it's \y

> portable_regex.render_postgres('{case-insensitive}tesco store.*{digit}{4}{word-boundary}');
> (?i)tesco store.*\d{4}\y