code: function PatternEmitter() {
    EventEmitter.call(this);
  
    this.event = '';
    this._regexesCount = 0;
  
    this._events = this._events || {};
    this._patternEvents = this._patternEvents || {};
    this._regexes = this._regexes || {};
  }
docs: Creates a new PatternEmitter, which extends EventEmitter. In addition to
  EventEmitter's prototype, it allows listeners to register to events matching
  a RegExp.
  
  @constructor
  @extends EventEmitter
  
  @property {*} event The type of the last emitted event