alert( /inline regexp/ instanceof RegExp ); alert( new RegExp('regexp') instanceof RegExp ); alert( '/not regexp+?/' instanceof RegExp );