<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AUsing_regular_expressions%2Fen</id>
	<title>Talk:Using regular expressions/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AUsing_regular_expressions%2Fen"/>
	<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Talk:Using_regular_expressions/en&amp;action=history"/>
	<updated>2026-08-13T05:48:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Talk:Using_regular_expressions/en&amp;diff=379121&amp;oldid=prev</id>
		<title>Ritapas: RegExp to validate email addresses</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Talk:Using_regular_expressions/en&amp;diff=379121&amp;oldid=prev"/>
		<updated>2024-11-14T11:25:43Z</updated>

		<summary type="html">&lt;p&gt;RegExp to validate email addresses&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I see that in this page it is advised to use the following RegExp to validate email addresses:&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/^.+?@.+?\..+$/&lt;br /&gt;
&lt;br /&gt;
However, this would validate an email address containing whitespace, and also lists of email addresses separated by puctuation.&lt;br /&gt;
I&amp;#039;ve found this RegExp would validate correctly an email address: &lt;br /&gt;
^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$&lt;br /&gt;
&lt;br /&gt;
As far as I know, there is not a neater option.&lt;br /&gt;
How about changing the page content?&lt;/div&gt;</summary>
		<author><name>Ritapas</name></author>
	</entry>
</feed>