thank you for your answer, but I think that a regular expression is not enough because I have a hole function to validate this field(adding,multiply, ...), I will try to edit the code(I'm not very good in php :dry: ) ) and thank you very much if you have an idea to help,
your work is good and I suggest to you if you can add this option(add a php function to validate a field) in the future,