D
Danny
Hello
here is a pattern I am using in regexp module:
href(.*?)[\x22>][^\x22]*\x22
This string seems to work in that it will return
href = "http://www.domain.com"
from href tags such as this.
<a href = "http://www.domain.com">This is a link</a>
it handles the spaces that may exist before and after equal sign.
(basically I am trying to extract links out of my url)
is there a way I can take this pattern a bit further to return just the
http://www.domain.com
I am new to regexp but have managed to get this far.
Thanks in advance
Danny
here is a pattern I am using in regexp module:
href(.*?)[\x22>][^\x22]*\x22
This string seems to work in that it will return
href = "http://www.domain.com"
from href tags such as this.
<a href = "http://www.domain.com">This is a link</a>
it handles the spaces that may exist before and after equal sign.
(basically I am trying to extract links out of my url)
is there a way I can take this pattern a bit further to return just the
http://www.domain.com
I am new to regexp but have managed to get this far.
Thanks in advance
Danny