There is features in 7 version of regex. How to use it in jsp or any class for validation as i want regex which must have alphabets and space(optional). how to make it ?
I don't think there's anything new in Java 7 specifically about regexps. What, exactly, about you referring to? Or are you saying that you are using Java 7, and are struggling with its regexp features? If so, start here: http://download.oracle.com/javase/tutorial/essential/regex/
Regex support through the java.util.regex package has been available since Java 1.4. Java 5.0 added a few features (quoting being the most important), Java 7 only added constant Pattern.UNICODE_CHARACTER_CLASS.
Rob Spoor wrote:Regex support through the java.util.regex package has been available since Java 1.4. Java 5.0 added a few features (quoting being the most important), Java 7 only added constant Pattern.UNICODE_CHARACTER_CLASS.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Indeed. Also the Matcher class is missing that tag.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.