Is this value a JS regex?