Seek to the head if failed to parse regex from stream.