Fix for issue #5, Regular expressions reject valid configuration settings

Added the validation rules I suggested in the bug report.