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
*.*.*
if regexp used to get boolean result (when you don't need a match result), it is better to use test method.
/.*\.js$/i.test(yourVar)