I'm trying to register a domain name with a .eg(i live in egypt) as the top-level domain. However, the local registrant told me to register a domain with the .eg extension i need to have a registered trademark. I dont think this makes much sense, is this a violation for any ICANN regulations, and if yes where i can find such documents?
[All links to English versions.]
The requirements for registering an .eg domain name are here.
Various TLDs have their own sets of requirements; there's no obvious violation of anything ICANN-related here. It looks like what you've been told might be half-true, depending upon exactly what name you're trying to register, and under what second-level domain, although I'm not so sure about use of the term "trademark" here. The .com.eg domain requires "commercial registry & taxation card" which I don't read as being the same thing.
Overall, the best thing for you to do would be to ask them directly and get an official response. There's a FAQ page that might cover your question, but I can't seem to get at the English version for it; if you can read it, give that a shot also.