I’ve been looking for a few days now, trying to match href links but I need to reduce the results so that the start of the href is:
<a href="/hp/
Does anyone know a regular expression that could do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This matches:
and returns its href value, but not
Pay attention: if you want the regex to match also href=”/load/” without other text then you have to substitute the + before the ? with a *, else this regex matches only href=”/load/anytext…”