I am not here for asking how to validate the fields. Neither I am expecting
.
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 ?