I need to test for \"[any number]\" in a string in javascript. how would i match it?
Oh, \"[\" and \"]\" also need to be matched.
so string like \"[1]\" or \"[1
var mask = /^\d+$/; if ( myString.exec(mask) ){ /* That's a number */ }