Overrides the jQuery val() function

Fixes #6
Custom regex patterns added

Fixes #7 - Adds the ability to use custom regex patterns