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
if("123".search(/^\d+$/) >= 0){ // its a number }