J
jd
hi all,
i'm using regular expression to find the url of the page to be opened
using the window.open().
typical urls look like this http://domain.com/path-to-page.html
right now i'm trying href.match(/http:\/\/domain\.com\/\w?\.html/)
and this will get me http://domain.com/path but not everything to
html.
does anyone have some tips they can offer?
i've tried
href.match(/http:\/\/domain\.com\/\w*\.html/)
href.match(/http:\/\/domain\.com\/*\.html/)
and they don't work.
thanks for any help you can offer
i'm using regular expression to find the url of the page to be opened
using the window.open().
typical urls look like this http://domain.com/path-to-page.html
right now i'm trying href.match(/http:\/\/domain\.com\/\w?\.html/)
and this will get me http://domain.com/path but not everything to
html.
does anyone have some tips they can offer?
i've tried
href.match(/http:\/\/domain\.com\/\w*\.html/)
href.match(/http:\/\/domain\.com\/*\.html/)
and they don't work.
thanks for any help you can offer