I want to search for titles using shell wildcards like *.js, *.*.* etc. in js. The thing is I loop through a list of titles and I need to filter th
*.js
*.*.*
This should be pretty close.
yourVar.match(/.*\.js$/i)
meaning
.*
.js
\.js$
/i