Update RegExValidator.java

Prevent serialization, deserialization and cloning