I'm validating the Edittext with regex by allowing particular characters in that i need to allow all the special characters to enter in edit text.
for allowing alpha and numbers im using the code
edittext.setFilters(new InputFilter[] { new PartialRegexInputFilter(
"[a-zA-z0-9]+") });
Like this i need to allow all special characters...
And also i try to give like this
edittext.setFilters(
new InputFilter[]
{ new PartialRegexInputFilter(
"[A-Za-z0-9!#$%&(){|}~:;<=>?@*+,./^_`-\'\" \t\r\n\f]+")
}
);` .
But this give error for single and double quote characters...