Fix for issue #5, Regular expressions reject valid configuration setting...

Fix for issue #5

Added the validation rules I suggested in the bug report.