A bit of code tidy up.
Fixed asRegex() to first strip the surrounding // quotes from the
pattern.
Fixed previous fix of D4Var.asRegex().
Added regex operators (=~ and split).
Added associated unit test method.