 <p>The best and clear way to do that is:</p> <pre><code>var list = {}; list.name = /^[A-Za-z\s.]+$/; list.general = /^[A-Za-z0-9\s.\-\/]{2,20}$/; list.email = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/; list.digit = /^[+]?[0-9\s]+$/; </code></pre> <p>without loops, etc</p>