Class Regex

java.lang.Object
ai.nightfall.scan.model.Regex

public class Regex extends Object
An object representing a regular expression to customize the behavior of a detector while Nightfall performs a scan.
  • Constructor Details

    • Regex

      public Regex(String pattern, boolean isCaseSensitive)
      Creates a new Regex object.
      Parameters:
      pattern - the regular expression to use as part of a detector
      isCaseSensitive - whether to consider case sensitivity when evaluating matches
  • Method Details

    • getPattern

      public String getPattern()
      Get the regex pattern.
      Returns:
      the regular expression to use as part of a detector
    • isCaseSensitive

      public boolean isCaseSensitive()
      Get whether the regex is case-sensitive.
      Returns:
      true if the regular expression needs to consider case sensitivity when searching for matches, false otherwise