angular-xregexp

angular-xregexp ==============

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jan 13, 2017Nov 16, 2016Minified + gzip package size for angular-xregexp in KB

Readme

angular-xregexp

XRegExp validator for AngularJS. This library decorates ngPattern to use XRegExp for more complex regular expression.

Installation

You can choose your preferred method of installation:

  • Through bower: bower install angular-xregexp --save
  • Through npm: npm install angular-xregexp xregexp --save
  • Download from github: angular-xregexp.min.js

Usage

Include both xregexp-all.js and angular-xregexp.js in your application.

<script src="components/xregexp/xegexp-all.js"></script>
<script src="components/angular-xregexp/angular-xregexp.js"></script>

Add the module angularXRegExp as a dependency to your app module:

var myapp = angular.module('myapp', ['angularXRegExp']);

Then just use ng-pattern as always.

License

Released under the terms of the MIT License.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.