New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

last-match

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

last-match

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

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created
Source

last-match

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

MIT License

Install

npm install last-match --save

Usage

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

Keywords

regular-expressions

FAQs

Package last updated on 19 Oct 2017

Related posts