<?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>NewSourceMedia Blog &#187; alphanumeric</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/alphanumeric/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Sun, 09 May 2010 02:35:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript Non Alphanumeric Characters Regex</title>
		<link>http://newsourcemedia.com/blog/javascript-non-alphanumeric-characters-regex/</link>
		<comments>http://newsourcemedia.com/blog/javascript-non-alphanumeric-characters-regex/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JS Forms]]></category>
		<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[alph]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[alphabetic]]></category>
		<category><![CDATA[alphanumeric]]></category>
		<category><![CDATA[alphnumeric]]></category>
		<category><![CDATA[and]]></category>
		<category><![CDATA[hyper]]></category>
		<category><![CDATA[hypertext]]></category>
		<category><![CDATA[javascript examples]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[letters]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[numbers]]></category>
		<category><![CDATA[numeral]]></category>
		<category><![CDATA[numeric]]></category>
		<category><![CDATA[only]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2006/12/28/javascript-non-alphanumeric-characters-regex/</guid>
		<description><![CDATA[Using javascript regular expressions to stop users from entering non-aphanumeric characters or white spaces

Say you want to stop users from entering non-aphanumeric characters or white   spaces.
Using regular expressions would be the easiest method:
Here is my javascript code:
&#60;script language="Javascript"&#62;
function alphaNumericCheck(){
var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/
if(regex.test(document.add_data.password.value)){
alert("Good")
return true;
} else {
alert("Please fix: password")
return false;
}
}
&#60;/script&#62; 
For numbers only use /^[0-9]+$/
For mixed [...]]]></description>
			<content:encoded><![CDATA[<p>Using javascript regular expressions to stop users from entering non-aphanumeric characters or white spaces<br />
<span id="more-175"></span></p>
<p>Say you want to stop users from entering non-aphanumeric characters or white   spaces.</p>
<p>Using regular expressions would be the easiest method:</p>
<p>Here is my javascript code:</p>
<p><code>&lt;script language="Javascript"&gt;<br />
function alphaNumericCheck(){<br />
var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/<br />
if(regex.test(document.add_data.password.value)){<br />
alert("Good")<br />
return true;<br />
} else {<br />
alert("Please fix: password")<br />
return false;<br />
}<br />
}<br />
&lt;/script&gt; </code><br />
For numbers only use /^[0-9]+$/</p>
<p>For mixed text and numbers, with spaces /^[0-9a-zA-Zs]+$/</p>
<p>Here are more useful regular expressions:</p>
<p><code>[a-zA-Z] any letter<br />
d any number; same as [0-9]<br />
D any NOT number; same as [^0-9]<br />
w any alphanumeric character; same as [a-zA-Z-0-9_]<br />
W any NON-alphanumeric character; same as [^a-zA-Z0-9_]<br />
s any whitespace (tab, space, newline, etc...)<br />
S any NON-whitespace<br />
n newline<br />
t tab</code></p>
<p>To view a full html sample of the above code click the links below using regular   expressions in JavaScript</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://newsourcemedia.com/blog/php-remove-non-alphanumeric-characters/" rel="bookmark">Php Remove Non-Alphanumeric Characters</a></li><li><a href="http://newsourcemedia.com/blog/javascript-email-validation-form/" rel="bookmark">Javascript Email Validation Form</a></li><li><a href="http://newsourcemedia.com/blog/alert-boxes/" rel="bookmark">Alert Boxes</a></li><li><a href="http://newsourcemedia.com/blog/delete-warning/" rel="bookmark">Delete Warning</a></li><li><a href="http://newsourcemedia.com/blog/breaking-out-of-frames/" rel="bookmark">Breaking out of frames</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/javascript-non-alphanumeric-characters-regex/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->