1 # filename-regex [![NPM version](https://badge.fury.io/js/filename-regex.svg)](http://badge.fury.io/js/filename-regex)
3 > Regular expression for matching file names, with or without extension.
6 ## Install with [npm](npmjs.org)
9 npm i filename-regex --save
15 var regex = require('filename-regex');
17 'a/b/c/d.min.js'.match(regex());
18 //=> match[0] = 'd.min.js'
20 'a/b/c/.dotfile'.match(regex());
21 //=> match[0] = '.dotfile'
27 Install dev dependencies:
34 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/regexps/filename-regex/issues)
41 + [github/jonschlinkert](https://github.com/jonschlinkert)
42 + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
46 Copyright (c) 2015 Jon Schlinkert
47 Released under the MIT license
51 _This file was generated by [verb](https://github.com/assemble/verb) on January 24, 2015._