We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Valid Username Regular Expression
Valid Username Regular Expression
Sort by
recency
|
449 Discussions
|
Please Login in order to post a comment
My Solution:
public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int nLines = Integer.parseInt(sc.nextLine());
}
import java.util.Scanner; class UsernameValidator { if(String.l) /* * Write regular expression here. */ public static final String regularExpression = null; }
Can someone explain this please
public static final String regularExpression = "^[A-Za-z][A-Za-z0-9_]{7,29}$";