java - Number Regular expression check fails -


i need check expression contains 2 digits slash , 3 digits. have coded following test in java:

string s="11/111"; system.out.println(s.matches("d{2}/d{3}")); 

the method matches returns true if regex matched.however check returns "false". what's wrong regular expression ?

a digit matched \d, not d:

s.matches("\\d{2}/\\d{3}") 

Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -