1.0.3 • Published 4 years ago

@jswork/next-regex-index-of v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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.