title: Difference between PHP regex and JavaScript regex
body: <p>Hi i want to use below php regex in spry java script framework but them doesn't work with spry framework and spry doesn't let the user to input!.<br>
  <code>1)"/^[\d]+$/"</code><br>
  <code>2)"/^([\x{600}-\x{6FF}]+\s)*[\x{600}-\x{6FF}]+$/u"</code><br>
  <code>3)"/^([\x{600}-\x{6FF}]+\d*\s)*[\x{600}-\x{6FF}]+\d*$/u"</code><br>
  please help me to convert them to use in spry framework.</p>