java-packagename-regex
v1.0.0
Published
Regular expresson for a Java package name. refer to [Java Naming a Package](http://goo.gl/Jp9l89)
Downloads
12
Maintainers
Readme
java-packagename-regex
Regular expresson for matching dotfiles.
Install with npm
npm i java-packagename-regex --save
Usage
var packageNameRe = require('java-packagename-regex');
var match = packageNameRe().exec('com.company.myapp');
// match[0] => 'com.company.myapp'
// match[2] => 'company'
packageNameRe().test('c0m.company.myapp');
//=> false
Run tests
Install dev dependencies:
npm i -d && npm test
License
MIT ©Jimmy Moon