revert input's pos when pattern/text match is failed
Merge pull request #15 from imasahiro/revert_input_pos_when_failed

Revert input's pos when pattern/text match is failed