我需要一个正则表达式来查找给定的 URL 是否在我的网站下。
例如 :
http://www.my_domain.com/internal_page should give true.
www.my_domain.com/internal_page should give false.
http://www.my_domain.com should give false. ( should have a "/" after .com ).
http://www.my_domain.com:dfdf should give false.
- 谢谢