i have an edit text, in which the name is entered. When i click the
button it should do a check.the check should be like, the word contains any characters $ [ ] . # +
when i used regex
Pattern regex = Pattern.compile("[$. #+]");
else if(regex.matcher(name).find()) {
showDialog(this, "invalid");
}
i was not able to give [] check is their any other way to check the existence of $ [ ] . # + characters.