I am not here for asking how to validate the fields. Neither I am expecting code-for-free.
As I mentioned in the original post I am selecting and validating each field using appropriate regex.
What I am looking for is a better method to do the validation - something similar to c++ class definition.
Can we have a hash defined with specific regex keys and check if the value match ?
in reply to Re: Efficient way to do field validation
in thread Efficient way to do field validation