N2
限り
かぎり
As long as, While… is the case, Limited to
彼から聞いた限り、田中君は退学になるらしい。
As far as I heard from him, apparently, Tanaka-kun is getting expelled.
Explanation
「限り」 has 2 uses
1As long as
As long as the first condition holds, the second stays true: 「諦めない限り、チャンスはある」 (as long as you don't give up, there's a chance). 「〜ない限り」: unless.
行列に並ばない限り、あのパンは買えない。
Unless you join the queue, you can't buy that bread.
彼が真剣に芸人になりたいと言っている限り、彼の夢は叶うだろう。
As long as he keeps saying he seriously wants to become a comedian, his dream will probably come true.
2As far as
Within what you know, see, hear or can do: 「私の知る限り」 (as far as I know), 「見る限り」 (as far as the eye can see), 「できる限り」 (as much as possible).
彼から聞いた限り、田中君は退学になるらしい。
As far as I heard from him, apparently, Tanaka-kun is getting expelled.
見る限り、水しかない...
As far as I can see, there's nothing but water...
Mixed up with
「〜限り(は)」: as long as the state continues: 「日本にいる限り、日本語を使う」 (As long as I'm in Japan, I'll use Japanese).
「〜に限り」: only for: 「本日ご来店のお客様に限り」 (only for customers visiting today).
「〜を限りに」: ends at that point: 「今日を限りに退職する」 (I will retire as of today).
「〜限りでは」: the extent of one's information: 「調べた限りでは」 (as far as I checked).