public static Pattern bitwiseNegate(CharSequence self){
  return Pattern.compile(self.toString());
}

public static Pattern bitwiseNegate ( CharSequence self ) { return Pattern . compile ( self . toString ( ) ) ; }
turns a charsequence into a regular expression pattern
