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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -