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.2
Version published
Weekly downloads
4
100%
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

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

Keywords

regular-expressions

FAQs

Package last updated on 29 Mar 2019

Related posts