document.URL Matching in Javascript
Posted
by streetparade
on Stack Overflow
See other posts from Stack Overflow
or by streetparade
Published on 2010-04-28T08:25:02Z
Indexed on
2010/04/28
8:43 UTC
Read the original article
Hit count: 169
JavaScript
|regex
I have a url which looks like this https://test.high.com/people/11111111-name-firstname-_custa/deals/new
Now i need to match document.URL if im on that Page if so i will alert a message.
The important part is /deals/new
How can i match that in Javascript?
© Stack Overflow or respective owner