I have a piece of html codes:
<tr style="padding:0;vertical-align:top;text-align:left">
<td style="word-break:break-word;border-collapse:collapse;padding:5px 10px;vertical-align:top;text-align:left;color:rgb(51,51,51);font-family:Helvetica,Arial,sans-serif;font-weight:bold;margin:0;line-height:19px;font-size:14px;width:270px;border-bottom:1px dotted rgb(212,212,212);border-left:none"> Traveler email </td>
<td style="word-break:break-word;border-collapse:collapse;padding:5px 10px;vertical-align:top;text-align:left;color:rgb(51,51,51);font-family:Helvetica,Arial,sans-serif;font-weight:normal;margin:0;line-height:19px;font-size:14px;width:270px;border-bottom:1px dotted rgb(212,212,212)">
<div align="right">
<a href="mailto:anarky@gmail.com" style="color:rgb(42,110,187);text-decoration:none" target="_blank">anarky@gmail.com</a>
</div> </td>
</tr>
I want to grab the traveler email address. I just cannot regex directly to word mailto
because there are some email addresses. So I think It's more be specific if I start regex from Traveler email
.
This is the expression I've made:
/Traveler\semail+([^mailto:]+)/
But it doesn't work.
Please your advise guess, thank you.