<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hontai &#187; expresiones regulares</title>
	<atom:link href="http://www.hontai.es/tag/expresiones-regulares/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hontai.es</link>
	<description>Hontai? no sería mejor hentai(manga guarro)?</description>
	<lastBuildDate>Sun, 09 May 2010 19:34:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Comprobar E-mail con expresiones regulares</title>
		<link>http://www.hontai.es/2009/06/comprobar-e-mail-con-expresiones-regulares/</link>
		<comments>http://www.hontai.es/2009/06/comprobar-e-mail-con-expresiones-regulares/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 11:22:12 +0000</pubDate>
		<dc:creator>n0ldor</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[expresiones regulares]]></category>

		<guid isPermaLink="false">http://www.hontai.es/?p=153</guid>
		<description><![CDATA[Una manera rapida y sencilla de comprobar si lo que realmente estan introduciendo en un formulario es un e-mail, es usando una expresión regular. Por ello os dejo esta que me he encontrado por los foros.
Espero que os sea de ayuda.
PLAIN TEXT
Actionscript:




var emailEx:RegExp = /^&#91;a-z&#93;&#91;\w.-&#93;+@\w&#91;\w.-&#93;+\.&#91;\w.-&#93;*&#91;a-z&#93;&#91;a-z&#93;$/i;


&#160;


if &#40;emailEx.test&#40;email.text&#41;&#41;&#123;


trace &#40;"Esta bien"&#41;;


&#125; 






]]></description>
			<content:encoded><![CDATA[<p>Una manera rapida y sencilla de comprobar si lo que realmente estan introduciendo en un formulario es un e-mail, es usando una <a href="http://es.wikipedia.org/wiki/Expresi%C3%B3n_regular">expresión regular</a>. Por ello os dejo esta que me he encontrado por los foros.</p>
<p>Espero que os sea de ayuda.</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> emailEx:RegExp = /^<span style="color: #66cc66;">&#91;</span>a-z<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span>\w.-<span style="color: #66cc66;">&#93;</span>+@\w<span style="color: #66cc66;">&#91;</span>\w.-<span style="color: #66cc66;">&#93;</span>+\.<span style="color: #66cc66;">&#91;</span>\w.-<span style="color: #66cc66;">&#93;</span>*<span style="color: #66cc66;">&#91;</span>a-z<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span>a-z<span style="color: #66cc66;">&#93;</span>$/i;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>emailEx.<span style="color: #006600;">test</span><span style="color: #66cc66;">&#40;</span>email.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">trace</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Esta bien"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hontai.es/2009/06/comprobar-e-mail-con-expresiones-regulares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
