I'm checking for StringPatterns. This is the RegEx:
Regex regEx = new Regex("(\\d{4}/\\d{1})");
Text examples look like this: 1234/5,1234/6,1234/8
. Everything works fine till there is a String like "1234/89", and the result of the match is still true. What am I missing? I also had this RegEx:
Regex regEx = new Regex("(\\d{4}/\\d{1}\\W)");
With the problem, that this one had the examples I mentioned as a non-match and therefor marked them false.