#pragma once #include #include #include class wxObject; class RegExValidator : public wxTextValidator { protected: wxRegEx regEx; wxString regExString; int regExFlags; public: RegExValidator(const wxString ®ExpString, wxString *valPtr = nullptr, int regExpFlags = wxRE_DEFAULT); wxObject *Clone() const override; wxString IsValid(const wxString &str) const override; };