I\'d like to search the body for an href that contains /test/. I then want to return the entire href value e.g. /test/123/.
/test/
/test/123/
Below is what I
You can do it like following using jQuery contain attribute selector.
$('a[href*="/test/"]').attr('href');