a experimental regex implement by automaton of pure Java