Adding custom regex message method