@autotrof/regex-like

1.0.1 • Public • Published

README

About

This is simple library for make regular expression for javascript to be able to do searching or filtering like mysql does when using "WHERE like" condition.

Usage

for example if we want to search "Budi go school" in "Budi is going to the school"

import regex_like from '@autotrof/regex-like'

const the_paragraph = "Budi is going to the school"
let regex = regex_like('Budi go school')

if (regex.test(the_paragraph)) {
  console.log("keyword found")
}

Package Sidebar

Install

npm i @autotrof/regex-like

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

1.72 kB

Total Files

5

Last publish

Collaborators

  • autotrof