validate method

Methods:
 validate: Structure for API now the following -
  net: Object of REGEX pattern matching
  perform(regex, str): Function to perform specified
                       pattern matching test on string