if( /^\/aaaaaaa/.test(location.pathname) )
/aaaaaaa
http://javascript.ru*!*/forum/events/21688-kak-s-pomoshhyu-regexp-opredelit-stranicu.html*/!*?p=127284#post127284