I wrote a small script that provided a URL (For example: code.google.com/ajax/123/1235/214) Would tell you that the actual domain is: code.google.com
When this is compared to code.google.com it return true of course, i want it to return true when it is compared to (anything).google.com So, i want it to return true whenever the actual domain is the same regardless of the subdomain, how to do that?
(Bu nedenle mümkün olduğunca çok yardım lütfen ben üzerinde çalışıyorum bir proje için, bir ev ödevi soru değil)
(Eğer sorunu anlamak için daha fazla bilgiye ihtiyacınız varsa, bir yorum yazmak ve ben hemen daha fazla bilgi sağlayacaktır lütfen)