Question : pattern matching regular expression

I need to do pattern matching
to filter the following strings


org.gnd.xx.zz"/> is acceptable
org.gnd.xx"/> is acceptable
org.gnd.xx.zz.ddd"/> is also acceptable and in general if the number of tokens (separated by .) must be 3 or  more

Answer : pattern matching regular expression

Try
1:
Pattern p = Pattern.compile("(?:\\w+\\.){2,}(?:\\w+);\"/>");
Random Solutions  
 
programming4us programming4us