<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You can use z_stdlib:<div class=""><br class=""></div><div class=""><a href="https://github.com/zotonic/z_stdlib/blob/master/src/z_email_utils.erl#L31" class="">https://github.com/zotonic/z_stdlib/blob/master/src/z_email_utils.erl#L31</a></div><div class=""><br class=""></div><div class="">- Marc</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 19 feb. 2016, at 10:48, Khitai Pang <<a href="mailto:khitai.pang@outlook.com" class="">khitai.pang@outlook.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi,<br class=""><br class="">How to write an Erlang function to check whether a string is a valid email address?<br class=""><br class="">Thanks<br class="">Simon<br class="">_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>