JSFiddle - React, Tailwind, and code Playground

by Felipe Alfaro

JavaScript

console.log(

	'menu-3293 active-trail'.match(/menu\-(\d+)/)

);