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);