Skip to content

JavaScript's String.indexOf() that allows for regular expressions.

License

Notifications You must be signed in to change notification settings

afeiship/next-regex-index-of

Repository files navigation

next-regex-index-of

JavaScript's String.indexOf() that allows for regular expressions.

version license size download

installation

npm install -S @jswork/next-regex-index-of

usage

import '@jswork/next-regex-index-of';

const str = `What's this? 这是什么?`;
const res = nx.regexIndexOf(str, /[\u4e00-\u9fa5]/);    // 13

license

Code released under the MIT license.

About

JavaScript's String.indexOf() that allows for regular expressions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published