Final Implementation of Regex validation

Also startup implementation of matches function which handles regex.
Not finished yet.
Tests missing