/**
  * Builds the global regular expression
  * Must be called once when the scripts loads
  */
 static function setRegexp()
 {
     $regexp = "";
     foreach (Token::$tokenObjects as $tokenObject) {
         // echo "hou ";
         $reg = $tokenObject->regexp;
         $regexp .= "|{$reg}";
     }
     self::$regexp = substr($regexp, 1);
     // removes the first pipe
 }