K
Krakatioison
People,
All I need is one line of code for regex to parse LINK, LINK TEXT and LINK
DESCRIPTION out of this html:
<a class="y" href=http://www.LINK.com>LINK TEXT</a><br><font size="-1"
style="font-family: arial,sans-serif"><b><font color="#6f6f6f"
style="font-family:
arial,sans-serif">Canada.com -</font>15 minutes ago</b><br>LI
NK DESCRIPTION <br>
In this case, this should be the result:
Link is: http://www.LINK.com
Link Text is: LINK TEXT
Link Description is: LINK DESCRIPTION
One person suggested this:
(?:<a\s+href=[\"\'](?<Link>.+?)[\"\'>]+(?<Heading>(\w+))</a>(<(\w+)>)(?<Desc
ription>.*)\2)
But it didn't work.
I already spent endless hours trying to write one line of code, it's really
at the end of my knowledge to fix it.
Does someone find a time to aswer me with one single line of regex code
which would do this?
Please.
K.
All I need is one line of code for regex to parse LINK, LINK TEXT and LINK
DESCRIPTION out of this html:
<a class="y" href=http://www.LINK.com>LINK TEXT</a><br><font size="-1"
style="font-family: arial,sans-serif"><b><font color="#6f6f6f"
style="font-family:
arial,sans-serif">Canada.com -</font>15 minutes ago</b><br>LI
NK DESCRIPTION <br>
In this case, this should be the result:
Link is: http://www.LINK.com
Link Text is: LINK TEXT
Link Description is: LINK DESCRIPTION
One person suggested this:
(?:<a\s+href=[\"\'](?<Link>.+?)[\"\'>]+(?<Heading>(\w+))</a>(<(\w+)>)(?<Desc
ription>.*)\2)
But it didn't work.
I already spent endless hours trying to write one line of code, it's really
at the end of my knowledge to fix it.
Does someone find a time to aswer me with one single line of regex code
which would do this?
Please.
K.