How can I enter multiple names in a TextField using Pattern.compile.
I tried with
The name that I want to enter is something like this:Code:
public static final Pattern PATTERN_NAME=Pattern.compile("[A-Z]('[A-Z])?([a-z])+");
and
public static final Pattern PATTERN_NAME=Pattern.compile("(\\b([A-Z])([a-z])+([ -])?)+");
John 'oryley george Lasló abu-MOHAMED
random charachers as you can see from the example

