Sha256: d63f709ab63a03d6edcc6fe7e88d1a80e53d4c78f72fe75a5d8b81dad687e4e1

Contents?: true

Size: 1 KB

Versions: 24

Compression:

Stored size: 1 KB

Contents

# filename-regex [![NPM version](https://badge.fury.io/js/filename-regex.svg)](http://badge.fury.io/js/filename-regex)

> Regular expression for matching file names, with or without extension.


## Install with [npm](npmjs.org)

```bash
npm i filename-regex --save
```

## Usage

```js
var regex = require('filename-regex');

'a/b/c/d.min.js'.match(regex());
//=> match[0] = 'd.min.js'

'a/b/c/.dotfile'.match(regex());
//=> match[0] = '.dotfile'
```


## Run tests

Install dev dependencies:

```bash
npm i -d && npm test
```

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/regexps/filename-regex/issues)


## Author

**Jon Schlinkert**
 
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 


## License
Copyright (c) 2015 Jon Schlinkert  
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on January 24, 2015._

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
lanes-0.8.0 node_modules/filename-regex/README.md
brwy_rails-0.0.6 test/dummy/node_modules/filename-regex/README.md
brwy_rails-0.0.5 test/dummy/node_modules/filename-regex/README.md
blackboard-3.1.9 lib/site_template/node_modules/filename-regex/README.md
brwy_rails-0.0.4 test/dummy/node_modules/filename-regex/README.md
brwy_rails-0.0.3 test/dummy/node_modules/filename-regex/README.md
brwy_rails-0.0.2 test/dummy/node_modules/filename-regex/README.md
brwy_rails-0.0.1 test/dummy/node_modules/filename-regex/README.md
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/filename-regex/README.md
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/filename-regex/README.md
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/filename-regex/README.md
hooch-0.4.2 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
hooch-0.4.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
hooch-0.4.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
gulp_assets-1.0.0.pre.5 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
gulp_assets-1.0.0.pre.4 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
gulp_assets-1.0.0.pre.3 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
hooch-0.3.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
hooch-0.2.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md
hooch-0.2.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/filename-regex/README.md