String test = "Testing \\item testing $one$  \\emph{two} $$three$$ \\begin{four} \\end{dffff} five.";   TeXWordFinder dwf = new TeXWordFinder(test);
String test = "A $gg ";   System.out.println(test);   TeXWordFinder dwf = new TeXWordFinder(test);
  public static void main(String[] args) {    String test = "Testing \\item testing $one$  \\emph{two} $$three$$ \\begin{four} \\end{dffff} five.";//    DefaultWordFinder dwf = new DefaultWordFinder(test);//    XMLWordFinder dwf = new XMLWordFinder(test);    TeXWordFinder dwf = new TeXWordFinder(test);        int i = 1;        while(dwf.hasNext()){           Word w = dwf.next();           System.out.println("Word " + i++ + ": " +w.toString());        }//    System.out.println(dwf.current().toString());//    System.out.println("Start?" + dwf.startsSentence);//    dwf.next();//    dwf.next();//    System.out.println(dwf.current().toString());//    dwf.replace("BALONEY");//    System.out.println(dwf.current().toString());//    System.out.println(dwf.toString());//    System.out.println(dwf.next());//    System.out.println(dwf.next());  }