Basically i have a java String which i want to restrict all the characters other than this regex code
String UcharSet = "^[a-zA-Z0-9-~!@#().]+";
if("hello.hi".matches(UcharSet)){
UNotAllowedCharEC = "0x00000030";
}
now the problem is that my if statement always gets to execute although i have my regex to allow . so i really appreciate if somebody tell me what am i doing wrong.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)