regex chracter matching once
trying to create a matcher for finding if title is not correct i.e. has to be mr, mrs, miss etc..but this allows mrmrmr etc when it should not. tried different setups to keep failing i.e. [[]] or (). public void valTitle(){ //validate title while (this.title.matches("^[\\s]+$") ...
__________________
Java
domain name forum
|