Searching a webpage for 'href="'

Is there a way to search on a webpage for the string 'href="' like it is done with the string 'http:' in cleve molers surfer.m example?

댓글 수: 2

Guillaume
Guillaume 2016년 4월 19일
Can you provide a link to that example?
Janis Uhrig
Janis Uhrig 2016년 4월 21일
https://www.math.washington.edu/~greenbau/Math_498/surfer.m // Here they are looking for the string 'http:' ,but the website I want to crawl does have the links like this: href="studierende/bachelor-studiengaenge/betriebswirtschaft/aktuelles/terminplaene/terminplan-ss/" class="link">Terminplan</a. So the algorithm can't find the link.

댓글을 달려면 로그인하십시오.

답변 (2개)

Meade
Meade 2016년 4월 20일

0 개 추천

Try regexp . For example:
exp = '<href="\w+">'
matches = regexp(youStr,exp,'match')
Jan
Jan 2016년 4월 21일
편집: Jan 2016년 4월 21일

0 개 추천

index = strfind(Str, 'href=')

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

질문:

2016년 4월 19일

편집:

Jan
2016년 4월 21일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by