Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Valid regex check java

try{
     Pattern.compile(pattern);
     System.out.println("Valid");
   }
catch(PatternSyntaxException e)
   {
     System.out.println("Invalid");
   }
 
PREVIOUS NEXT
Tagged: #Valid #regex #check #java
ADD COMMENT
Topic
Name
7+1 =