Added regular expression support

There is now an ability to declare a regular expression that stops
characters not in it from being used.