I have this regex on Javascript
var myS = \"00 - ??:??:?? - a\"; var removedTL = myS.match(/^(\\d\\d) - (\\?\\?|10|0\\d):(\\?\\?|[0-5]\\d):(\\?\\?|[0-5]\\d)
The more appropriate function here might be RegExp.test, which explicitly gives you true or false.
RegExp.test
console.log(/lolcakes/.test("some string")); // Output: false console.log(/lolcakes/.test("some lolcakes")); // Output: true