我自读书识字以来,就想为英雄豪杰,求之四书五经,茫无所得,求之诸子百家,与夫廿四史,仍无所得,以为古之为英雄豪杰者,必有不传之秘,不过吾人生性愚鲁,寻他不出罢了。穷索冥搜,忘寝废食,如是者有年,一日偶然想起三国时几个人物,不觉恍然大悟曰:得之矣,得之矣,古之为英雄豪杰者,不过面厚心黑而已。
李宗学,厚黑学全集,p.21. (photo)
I don't understand 如是者有年 above, and specifically what 者 is doing in there. My best guess is 如是者 could be something like "such a person", but YouDao gives "if so" which suggests 者 is something like 这样 in this context.
Question: How do I interpret 者 in 如是者有年…?