我的意圖是從網頁上獲取電子郵件地址。我有頁面源。我正在逐行閱讀頁面源代碼。現在我想從我正在閱讀的當前行獲取電子郵件地址。該當前行可能有或沒有電子郵件。我看到了很多正則表達式的例子。但其中大多數是用於驗證電子郵件地址。我想從頁面源中獲取未驗證的電子郵件地址。作爲http://emailx.discoveryvip.com/工作正則表達式來查找字符串的電子郵件地址
它應該工作的一些例子輸入線路有:
1)<p>Send details to <a href="mailto:%72%65%62%65%6b%61%[email protected]%68%61%63%6b%73%75%72%66%65%72.%63%6f%6d">[email protected]</a></p>
2)<p>Interested should send details directly to <a href="http://www.abcdef.com/abcdef/">www.abcdef.com/abcdef/</a>. Should you have any questions, please email <a href="mailto:%6a%6f%62%[email protected]%72%65%6c%61%79.%65%64%75">[email protected]</a>.
3)Note :- Send your queries at [email protected] for more details call Mr. neeraj.
我想從實例1,2和3 我用java獲得[email protected],我不擅長rexexp。幫我。
你檢查什麼谷歌說,關於「java的正則表達式的電子郵件」? – Vitaly
檢查http://emailx.discoveryvip.com/的頁面源。他們已經提供了提取電子郵件的方法。但我想要一個Java版本 – Neeraj
你有什麼嘗試?堆棧溢出是一個問答網站,而不是「爲我工作」網站。告訴我們你有什麼,所以我們可以幫助你解決你的具體問題。 –