Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java 8 validate based on pair of strings

String input = "one=1&two=2";
Pattern p = Pattern.compile("^(?:w*=d*(?:&|$))+$");
Matcher m = p.matcher(input);
if (m.matches()) System.out.println("Matches!");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #validate #based #pair #strings
ADD COMMENT
Topic
Name
8+9 =