New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@taraflex/last-match

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taraflex/last-match

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

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
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 16 Jul 2023

Related posts