User:Andreicloud/hydra.js

if (/\d/.test('0'))                  alert('Digit' if (/[13579]/.test('1'))              alert('Odd number'); if (/\S\S\s\S\S\S\S/.test('My name')) alert('Format OK');