My regular expression is following:
^([0369]|[258][0369]*[147]|[147]([0369]|[147][0369]*[258])*[258]|[258][0369]*[258]([0369]|[147][0369]*[258])*[258]|[147]([0369]|[147][0369]*[258])*[147][0369]*[147]|[258][0369]*[258]([0369]|[147][0369]*[258])*[147][0369]*[147])*$
This allow us too divisible by 3 numbers but it also allowing me to 0 which is not require me please help me out it restrict me to insert 0 and allow me 1. so finally my requirement is it allow us all multi-player of 3 and we can also enter value 1 .