Skip to content

Instantly share code, notes, and snippets.

View anteeek's full-sized avatar
๐Ÿค 
๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ

Maciek Antek Papiewski anteeek

๐Ÿค 
๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ
View GitHub Profile
@anteeek
anteeek / express_get_params.js
Created September 21, 2019 08:27
Capture all params by a regex from a express route string
const route = "/first/:second/:third/fourth/:fifth"
// (3)ย ["second", "third", "fifth"]
route.match(/(?<=\/:)(.*?(?=\/))/g);