title: How to validate the address fields in scala?
body: <p>I am new to scala . I want to validate address module which contains the following sub-fields and their validation requirement:
  office no:must contain alphanumeric value (e.g. D-20),
  Floor no:Must contain only digits less than 150,
  Building name :Can contain alphanumeric value.,
  Area:Must have alphabets(e.g. Mumbai),
  Country :Must have only alphabets,
  zip code: Must have 6 digit value.  </p>
  
  <p>It will be very helpful for me if someone suggest me any link to read for these kind of validations.
  Thank u in advance. . </p>