code: function RouteRule_toRegex(re) {
          var matches = core.match(PATTERN_CAPTURE_REGEX, re), newRegex = re;
  
          if (matches.length) {
              matches = matches.map(this.toObject);
              matches.forEach(function (item, mIndex) {
                  var index = Object.keys(item).length - 3;
                  item.isNamed = IS_NAMED.test(item[1]);
                  if (item.isNamed) {
                      if (IS_GROUP.test(item[index])) {
                          item.pattern = item[index];
                      } else {
                          item.pattern = '(' + item[index] + ')';
                      }
  
                      item.key = item[2];
                      newRegex = newRegex.replace(item[0], item.pattern);
                  } else {
                      if (IS_GROUP.test(item[index])) {
                          item.pattern = item[index];
                      } else {
                          item.pattern = '(' + item[index] + ')';
                      }
                      item.key = null;
                  }
                  item.index = mIndex;
              });
              return {
                  group: matches,
                  regex: core.createRegex(newRegex)
              };
          }
          return {
              group: false,
              regex: core.createRegex(re)
          };
      }
docs: @since 0.0.1
  @author Igor Ivanovic
  @method RouteRule#toRegex
  
  @description
  Creates regex from regex group string