# is-regexp > Check if a value is a regular expression ## Install ``` $ npm install is-regexp ``` ## Usage ```js import isRegexp from 'is-regexp'; isRegexp('unicorn'); //=> false isRegexp(/unicorn/); //=> true isRegexp(new RegExp('unicorn')); //=> true ``` ## FAQ #### [Why not just use `instanceof` instead of this package?](https://github.com/sindresorhus/is#why-not-just-use-instanceof-instead-of-this-package) ## Related - [is](https://github.com/sindresorhus/is) - Type check values ---