Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Java (http://www.domainnameforum.org/forumdisplay.php?f=125)
-   -   regex chracter matching once (http://www.domainnameforum.org/showthread.php?t=151935)

Java 03-25-2011 06:47 PM

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]+$") ...


All times are GMT -4. The time now is 01:47 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.