function regex (...expr) {
  return (value) => {
    value = unwrap(value)
    return !req(value) || expr.every((reg) => {
      reg.lastIndex = 0
      return reg.test(value)
    })
  }
}
Regex based validator template
@param {RegExp} expr
@return {function(*=): boolean}