This package has been deprecated

Author message:

use @taraflex/last-match

last-match
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

last-match

Return last value from String.match(RegExp) or null

MIT License

Install

npm install last-match --save

Usage

import lastMatch from 'last-match';
console.log(lastMatch('hello world', /o\s*(\w+)/i)); //Output -> world

Package Sidebar

Install

npm i last-match

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

2.98 kB

Total Files

6

Last publish

Collaborators

  • taraflex