mercredi 6 mai 2015

what is the meaning of [...] in regex java?

I am new to regex going through the tutorial I found the regex [...] says Matches any single character in brackets..So I tried

System.out.println(Pattern.matches("[...]","[l]"));

But it gives me false I expected true because l is inside brackets.

It would be helpful if anybody clear my doubts.

Thanks

Aucun commentaire:

Enregistrer un commentaire