//mailto:が使用されているメールアドレス preg_match_all(“/mailto:(.+?)”/s”, $html2, $matches); //mailto:は使用されておらず、@を基準に判別 preg_match_all(‘/[-.w/]+@[-._[:lower:]d]+.[[:lower:]]{2,4}/s’, $html2, $matches); または、 preg_match_all(‘/[-._a-zA-Z0-9/]+@[-._a-z0-9]+.[a-z]{2,4}/s’, $html2, $matches); 正規表現については、精度の問題もあり、意見が分かれるところだとは思いますが、私の場合は、これで十分だったので、メモとして残しておきます。

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

オーガナイザーからProvisioningする際にエラー

2010年12月23日 過去Blog
新しく購入したipadをオーガナイザーから、Provisioningしようとすると以下のようなエラーが出ました。 An unexpected error occurred. Please try again. If the problem persists, please contact Apple Developer Support. mac上のXCodeがiOS4.1のバージョンだったため、…
「オーガナイザーからProvisioningする際にエラー」をはてなブックマークに追加

mobile me の新規アカウント登録

2010年12月23日 過去Blog
先日、購入したipadにmobile me のアカウントを追加しようと思ったのですが、既存のmac ID を入力しても、そのID(メールアドレス: *****@mac.com)のメールが受信出来ないので、登録確認メールが届かず、mobile me の新規作成をしたのですが、何度もエラーが出てしまったので、覚え書きをしておきます。 …
「mobile me の新規アカウント登録」をはてなブックマークに追加

/etc/hosts ファイルの変更を反映させる

2009年12月05日 過去Blog
hostsファイルの設定を変えた場合は、 # /etc/rc.d/init.d/network resatart または、 # /etc/rc.d/init.d/network reload で反映させる。
「/etc/hosts ファイルの変更を反映させる」をはてなブックマークに追加

tabBar + navigationBar + tableView

2011年01月19日 過去Blog
http://www.edumobile.org/iphone/iphone-programming-tutorials/tabbarcontroller-with-navigationcontroller-and-tableview-in-iphone/ http://iphone-app-developer.seesaa.net/article/130194298.html house cl…
「tabBar + navigationBar + tableView」をはてなブックマークに追加

addressbook内のデータをtableViewに表示させる

2011年01月17日 過去Blog
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusab…
「addressbook内のデータをtableViewに表示させる」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy