use java parse to replace regular express