<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[最完美支持汉字及特殊字符的邮箱正则]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Fri, 31 Dec 2021 03:48:02 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	公司有个项目运维管理平台中用户管理模块添加用户时填写用户邮箱反馈说不能带点,如heck.jiang@heckjj.com这种，这明显不合理呀，而且这种情况也很常见。如下图：<br/><a href="https://www.heckjj.com/attachment.php?fid=223" target="_blank"><img src="https://www.heckjj.com/attachment.php?fid=223" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>于是乎拉下前端代码发现，校验邮箱的正则是这样的“&#123; required: true, message: &#039;请输入正确的邮箱&#039;, pattern: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(&#92;.[a-zA-Z0-9_-]+)+$/, trigger: &#039;blur&#039; &#125;”，明显达到期望，自己重新写了一个如下：<br/>^(([^&lt;&gt;()&#92;[&#92;]&#92;&#92;.,;:&#92;s@&quot;]+(&#92;.[^&lt;&gt;()&#92;[&#92;]&#92;&#92;.,;:&#92;s@&quot;]+)*)&#124;(&quot;.+&quot;))@((&#92;[[0-9]&#123;1,3&#125;&#92;.[0-9]&#123;1,3&#125;&#92;.[0-9]&#123;1,3&#125;&#92;.[0-9]&#123;1,3&#125;])&#124;(([a-zA-Z&#92;-0-9]+&#92;.)+[a-zA-Z]&#123;2,&#125;))$<br/>用校验工具校验了一下，成功匹配到了heck.jiang@heckjj.com这个邮箱。<br/><br/><br/>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] 最完美支持汉字及特殊字符的邮箱正则]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>