Add regex validation to GUI edit windows close #115