| Quote: | | | Originally Posted by mohymen | | | | |
| Example Html Code:
<tr class="phead"><td><b></b></td></tr><tr><td valign="top"><div class="first"></div><div>mohymen yahoo.com</div><div class="last"></div></td></tr>
<tr class="phead"><td><b>afroza_hussain</b><small>afroza_hussain</small></td></tr><tr><td valign="top"><div class="first"></div><div></div><div class="last"></div></td></tr>
My Regular expression:
"/<tr class="?phead"?[^>]*>[^<]*<td>[^>]*<b>([^<]*)<\/b>[<font*><i>]?[>]*[<\/i><\/font>]?[^>]*[- <small>]?([^>]*)>([^<]*)[<\/small>]?[^>]*<\/td>[^<]*<\/tr>[^<]*<tr[^>]*>[^<]*<td valign="?top"?[^>]*>[^<]*<div class="?first"?[^>]*>([^<]*)<\/div>[^<]*<div>([^<]*)<\/div>[^<]*<div class="?last"?[^>]*>([^<]*)<\/div>/"
I want to to short this expression. Would you have any Idea Mina? Let me know.
Thanks in advance,
Mohymen | |
| | |
Hi mohymen, what are you trying to search..? email on this page?
with my little knowledge of perl...if your testing for email address in perl..then follow the lines below from the link..if not let me know! Thanks..
[thelist] testing for email address in perl
Sorry if it wouldn't help you out at all.