title: Regular expressions and divisibility
body: <p>How can I create a regular expression which test if a number is divisible by i (2&lt;=i&lt;=10), 8 expressions in total? One can only assume that integers are positive. You can use symbols [] and [^] , ?, * and + , | and (). PHP's ereg-function should accept it.</p>