rewrote textParser by supplying some regex