Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Java Regex : 4 Letters followed by 2 Integers

public static boolean checkPass(String s){
    System.out.println(s); // Prints : Mypass85
    p = Pattern.compile("[A-Za-z]{4}[0-9]{2}");
    return p.matcher(s).find();
}
Comment

Java Regex : 4 Letters followed by 2 Integers

public static boolean checkPass(String s){
    System.out.println(s); // Prints : Mypass85
    p = Pattern.compile("[A-Za-z]{4}[0-9]{2}");
    return p.matcher(s).find();
}
Comment

PREVIOUS NEXT
Code Example
Java :: arrays.sort with comparator 
Java :: how to check if a person presses a button in jframe in java 
Java :: java input - how to read a string 
Java :: File Appender log4j2.properties spring 
Java :: java list last element 
Java :: line break in android xml dynamically 
Java :: reverse negative number 
Java :: get executable path java 
Java :: How to read and write XML files 
Java :: latest android sdk version 
Java :: java use variables inside strings 
Java :: what are abstract methods in java 
Java :: eliminar el primer caracter de un string java 
Java :: write in file java 
Java :: remove all element in a list java 
Java :: reading string after double in java 
Java :: Java get integer color from rgb 
Java :: Example of Creating a Java Stack 
Java :: color class android 
Java :: java continue keyword 
Java :: mongodb check if field exists java 
Java :: java easy list 
Java :: hide background of button java swing 
Java :: How to find the maximum occurring character in a given String? using hashmap java 
Java :: scanf in java 
Java :: interface in solidity 
Java :: android activity keyboard hide 
Java :: how to make a button disapear on click in javafx 
Java :: remove selected text from string value android java 
Java :: mettre caractère de string en majuscule java 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =