Class RegexValidator

java.lang.Object
com.atlassian.validation.RegexValidator
All Implemented Interfaces:
Validator

public final class RegexValidator extends Object implements Validator
Validates that a given string is a valid regular expression. This is not the same question as whether you should let it loose on your production system.
Since:
v4.4
  • Constructor Details

    • RegexValidator

      public RegexValidator()
  • Method Details

    • validate

      public Validator.Result validate(String value)
      Description copied from interface: Validator
      Validate the given string to see if it passes and if not, why not.
      Specified by:
      validate in interface Validator
      Parameters:
      value - all validation input is a String.
      Returns:
      A result that contains access to the details of the validation outcome.