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

0.0.1 • 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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @taraflex/last-match

      Weekly Downloads

      3

      Version

      0.0.1

      License

      MIT

      Unpacked Size

      3.87 kB

      Total Files

      8

      Last publish

      Collaborators

      • taraflex