The Talmud says:
Mishnah: A Nazirite vow of unspecified duration [remains in force] thirty days. Gemara: From where is this rule derived? Rabbi Mattena said: The text reads: He shall be [yihyeh] holy, and the numerical value of the word "yihyeh" is thirty. [Nazir 5a]
I thought we were not allowed to derive halacha from gematria. Are we?
(As an aside, wouldn't the gematria of "holy" be more appropriate?)