code: function pattern(toMatch) {
    var regexps = getQMarkPaths(toMatch, [])
  
    //reassign array to compiled regular expressions
    regexps.forEach(function(aPath, ix) {
      regexps[ix] = compile(aPath, true).regexp //'true' tells regexp compiler to math till end => '$'
    })
  
  
    if (regexps.length === 1) { //fast case
      var reg = regexps[0]
      return reg.test.bind(reg)
    } else { //test each potential path
      return function (testAgainst) {
        for (var i = 0; i < regexps.length; i++) {
          if (regexps[i].test(testAgainst)) return true
        }
  
        return false
      }
    }
  }
docs: /*
  pattern matching API
  
  @param {string} toMatch => similary type string that you would use in router.define
  @return a function that when executed with string as its argument, will return a boolean