New:Introducing Socket Scanning for VS Code Marketplace Extensions.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

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
0
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