Improved support of regular expressions and data validation

Changes to support named regexp groups, validation of mime type before parsing CSV files and automatic column number detection.