toggleRegex method

void toggleRegex()

Implementation

void toggleRegex() {
  isRegex = !isRegex;
}