I am wondering if there is a better to represent a fix amount of repeats in a regular expression. For example, if I just want to match exactly 14 letters/digits, I am using
In Java create the pattern with Pattern p = Pattern.compile("^\\w{14}$"); for further information see the javadoc
Pattern p = Pattern.compile("^\\w{14}$");