<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/validator</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 09:26:10 GMT</pubDate>
<item>
<title>(jQuery) Form validator - tcspinks</title>
<link>http://snipplr.com/view/70524/form-validator/</link>
<description><![CDATA[ <p>Validate numbers only, email addresses, restricted input, required fields, and add error classes</p> ]]></description>
<pubDate>Sat, 23 Mar 2013 03:23:27 GMT</pubDate>
<guid>http://snipplr.com/view/70524/form-validator/</guid>
</item>
<item>
<title>(PHP) PHP Email Validator – Email MX DNS Record Check - mafhh14</title>
<link>http://snipplr.com/view/70403/php-email-validator--email-mx-dns-record-check/</link>
<description><![CDATA[ <p>Validating an email address is one of the hardest feats on the web. A valid email can be marketing
gold, but an invalid email address is dead weight. Not only does it require a CPU-taxing PHP regular
expression ("/^[A-z0-9\._-]+"."@" . "[A-z0-9][A-z0-9-]*". "(\.[A-z0-9_-]+)*"."\.([A-z]{2,6})$/"),
the regular expression can be useless even after it's validated for format if the domain doesn't
exist. 

A regular expression simply wont do -- we need to think more low-level. What does email at any
domain require? A DNS MX record. Well, PHP provides a great solution to validate that there's a MX
record for the provided email address' domain.</p> ]]></description>
<pubDate>Wed, 13 Mar 2013 19:07:33 GMT</pubDate>
<guid>http://snipplr.com/view/70403/php-email-validator--email-mx-dns-record-check/</guid>
</item>
<item>
<title>(PHP) Ultimate Email Validation PHP Function - thewickedchemist</title>
<link>http://snipplr.com/view/65332/ultimate-email-validation-php-function/</link>
<description><![CDATA[ <p>Checks for fake DNS as well as utilizes regex functions to check the string for proper length &amp; characters.</p> ]]></description>
<pubDate>Sat, 02 Jun 2012 14:35:49 GMT</pubDate>
<guid>http://snipplr.com/view/65332/ultimate-email-validation-php-function/</guid>
</item>
<item>
<title>(C#) Email Validator - ryanfiorini</title>
<link>http://snipplr.com/view/64244/email-validator/</link>
<description><![CDATA[ <p>A simple utility method to validate an Inputted Email Address.</p> ]]></description>
<pubDate>Sat, 31 Mar 2012 00:13:10 GMT</pubDate>
<guid>http://snipplr.com/view/64244/email-validator/</guid>
</item>
<item>
<title>(Ruby) CPF and CNPJ validation classes using the Brazilian Government official algorithms - mabafu</title>
<link>http://snipplr.com/view/60227/cpf-and-cnpj-validation-classes-using-the-brazilian-government-official-algorithms/</link>
<description><![CDATA[ <p>#About#
CPF and CNPJ are self-validated codes generated by Brazilian government. Being the CPF used to identify persons and CNJP to enterprises, organizations and so on.

That said, I use to code the CPF/CNPJ algorithm when learning new programming languages. With Ruby, it got very clean and powerful because it's particular way to deal with "closures" (i.e. the ruby blocks, Procs and lambdas).


To use Cpf or Cnpj classes, just instantite the respective classes passing the numbers to be validated. CPF has 11 digits and CNPJ has 14. In both cases the last two digits are calculated based on the previous ones.

Module11 is the parent class of Cpf and Cnpj. You can use this class if you want to implement your own Module 11 validation algorithm. In this case, inherit from Module11  and initialize the new class with the proper parameters (i.e. input, formula, size, number_of_digits)</p> ]]></description>
<pubDate>Thu, 27 Oct 2011 03:06:50 GMT</pubDate>
<guid>http://snipplr.com/view/60227/cpf-and-cnpj-validation-classes-using-the-brazilian-government-official-algorithms/</guid>
</item>
<item>
<title>(jQuery) Form Validate - SubriseSammy</title>
<link>http://snipplr.com/view/59296/form-validate/</link>
<description><![CDATA[ <p>Simple form validator

Just give your form the class validate and add the classes required or requiredEmail to the required input fields.




</p> ]]></description>
<pubDate>Fri, 30 Sep 2011 23:02:33 GMT</pubDate>
<guid>http://snipplr.com/view/59296/form-validate/</guid>
</item>
<item>
<title>(VB.NET) Custom validator para validar un checkbox - JoseKar</title>
<link>http://snipplr.com/view/58472/custom-validator-para-validar-un-checkbox/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Sep 2011 21:19:31 GMT</pubDate>
<guid>http://snipplr.com/view/58472/custom-validator-para-validar-un-checkbox/</guid>
</item>
<item>
<title>(ActionScript 3) Validador - ZeRat</title>
<link>http://snipplr.com/view/51151/validador/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 26 Mar 2011 07:37:10 GMT</pubDate>
<guid>http://snipplr.com/view/51151/validador/</guid>
</item>
<item>
<title>(jQuery) Validate an age using jQuery Validator plug-in - 1man</title>
<link>http://snipplr.com/view/43071/validate-an-age-using-jquery-validator-plugin/</link>
<description><![CDATA[ <p>Useful snippet i found on a forum, use it to check to see if a user is old enough to submit a form.</p> ]]></description>
<pubDate>Thu, 28 Oct 2010 01:22:57 GMT</pubDate>
<guid>http://snipplr.com/view/43071/validate-an-age-using-jquery-validator-plugin/</guid>
</item>
<item>
<title>(JavaScript) Javascript w3c validator - silviud</title>
<link>http://snipplr.com/view/39986/javascript-w3c-validator/</link>
<description><![CDATA[ <p>have it as bookmark - clicking on it will validate the current page</p> ]]></description>
<pubDate>Sat, 04 Sep 2010 04:05:26 GMT</pubDate>
<guid>http://snipplr.com/view/39986/javascript-w3c-validator/</guid>
</item>
<item>
<title>(PHP) POST or GET data empty check - jamepaul</title>
<link>http://snipplr.com/view/39904/post-or-get-data-empty-check/</link>
<description><![CDATA[ <p>I don't want to write function empty() again and again.</p> ]]></description>
<pubDate>Thu, 02 Sep 2010 20:48:06 GMT</pubDate>
<guid>http://snipplr.com/view/39904/post-or-get-data-empty-check/</guid>
</item>
<item>
<title>(Java) Anagram Validator - mangrar</title>
<link>http://snipplr.com/view/29325/anagram-validator/</link>
<description><![CDATA[ <p>This is a snippet to validate anagrams of  'debit card'. It validates 'debit card' and 'bad credit'</p> ]]></description>
<pubDate>Fri, 05 Mar 2010 04:01:35 GMT</pubDate>
<guid>http://snipplr.com/view/29325/anagram-validator/</guid>
</item>
<item>
<title>(JavaScript) Avoid HTML validators in your javascript inline code with CDATA - jaff</title>
<link>http://snipplr.com/view/28753/avoid-html-validators-in-your-javascript-inline-code-with-cdata/</link>
<description><![CDATA[ <p>Use /* </p> ]]></description>
<pubDate>Mon, 22 Feb 2010 13:29:09 GMT</pubDate>
<guid>http://snipplr.com/view/28753/avoid-html-validators-in-your-javascript-inline-code-with-cdata/</guid>
</item>
<item>
<title>(JavaScript) Javascript OOP Form Validator - alvincrespo</title>
<link>http://snipplr.com/view/28592/javascript-oop-form-validator/</link>
<description><![CDATA[ <p>Just thought id put up a version of my form validation class. It will be expanded in the future but I thought Id let everyone have a look.

# Update 0.1  #
    *   Create Error List Function
    *   Validate Email Address Function
    *   Validate Length of field</p> ]]></description>
<pubDate>Fri, 19 Feb 2010 03:12:07 GMT</pubDate>
<guid>http://snipplr.com/view/28592/javascript-oop-form-validator/</guid>
</item>
<item>
<title>(PHP) ISBN validator - tomaszsobczak</title>
<link>http://snipplr.com/view/26569/isbn-validator/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 16 Jan 2010 15:22:48 GMT</pubDate>
<guid>http://snipplr.com/view/26569/isbn-validator/</guid>
</item>
<item>
<title>(PHP) PL VATID validator - tomaszsobczak</title>
<link>http://snipplr.com/view/26568/pl-vatid-validator/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 16 Jan 2010 15:20:25 GMT</pubDate>
<guid>http://snipplr.com/view/26568/pl-vatid-validator/</guid>
</item>
<item>
<title>(Other) How to configure the output format of the W3 CSS Validator - noah</title>
<link>http://snipplr.com/view/19817/how-to-configure-the-output-format-of-the-w3-css-validator/</link>
<description><![CDATA[ <p>The W3 CSS validator is pretty simple to [install locally for use behind the firewall](http://www.emacswiki.org/emacs/FlymakeCSS).

However, by default the validator spits out the whole CSS file after validation, which is inconvenient if your stylesheet is more than a few lines long.

Unfortunately it's not so obvious how to configure the validator to give pretty-printed, human-readable output.  In fact, all there is to it, is to choose a different output format from the several that are supported :)

By default the validator .jar file gives you "text" output, which includes the stylesheet.  To choose a different format, invoke the validator .jar file with an -output argument, like this:

    java -jar css-validator.jar -output  local-file:foo.css

where `` is any of xhtml, xml, text, soap12, json, ucn or gnu

If you just want the errors as (html-escaped) plain text, but without the CSS included, use `gnu`</p> ]]></description>
<pubDate>Wed, 16 Sep 2009 11:53:08 GMT</pubDate>
<guid>http://snipplr.com/view/19817/how-to-configure-the-output-format-of-the-w3-css-validator/</guid>
</item>
<item>
<title>(JavaScript) ASP.net: Page Validation on Client Side. - jink</title>
<link>http://snipplr.com/view/18915/aspnet-page-validation-on-client-side/</link>
<description><![CDATA[ <p>Page_ClientValidate is a global function.  When called this will return true/false if the validator group provided is valid or not.</p> ]]></description>
<pubDate>Thu, 27 Aug 2009 15:04:18 GMT</pubDate>
<guid>http://snipplr.com/view/18915/aspnet-page-validation-on-client-side/</guid>
</item>
<item>
<title>(Python) FormAlchemy example with custom validator, renderers, forms - Pylons app - wackysalut</title>
<link>http://snipplr.com/view/13551/formalchemy-example-with-custom-validator-renderers-forms--pylons-app/</link>
<description><![CDATA[ <p>This is based on FormEncode 1.2 + two patches you get here:
 http://code.google.com/p/formalchemy/issues/detail?id=83
and here:
 http://code.google.com/p/formalchemy/issues/detail?id=84
(at this point, they might be included in the official release).</p> ]]></description>
<pubDate>Sun, 29 Mar 2009 09:28:25 GMT</pubDate>
<guid>http://snipplr.com/view/13551/formalchemy-example-with-custom-validator-renderers-forms--pylons-app/</guid>
</item>
<item>
<title>(ActionScript 3) URLValidator - martinj</title>
<link>http://snipplr.com/view/11969/urlvalidator/</link>
<description><![CDATA[ <p>Class to validate URLs with or without protocol prefixes. Checks for valid TLD.</p> ]]></description>
<pubDate>Sun, 08 Feb 2009 09:55:17 GMT</pubDate>
<guid>http://snipplr.com/view/11969/urlvalidator/</guid>
</item>
</channel>
</rss>