R
Ryan Moore
I am trying to write a regex expression which extracts all href links
from a HTML page... I'm currently using the following:
href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))
but it has a problem with hrefs enclosed in single quotes, such as:
<a href='anotherpage.htm'>
I'm not a regex guru, can anyone point me in the right direction?
Thanks!
from a HTML page... I'm currently using the following:
href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))
but it has a problem with hrefs enclosed in single quotes, such as:
<a href='anotherpage.htm'>
I'm not a regex guru, can anyone point me in the right direction?
Thanks!