Si tu supprimes la marque de fin de chaine ($), un fichier de nom "toto.xmlfoo" passera pour valide.
Tiré de http://java.sun.com/j2se/1.4.2/docs/api/
matches public boolean matches()Attempts to match the entire input sequence against the pattern. If the match succeeds then more information can be obtained via the start, end, and group methods.
Returns: true if, and only if, the entire input sequence matches this matcher's pattern Entire input, ca veut dire qu'il faut que toute la chaine matche l'expression non ?
Si tu supprimes la marque de fin de chaine ($), un fichier de nom
"toto.xmlfoo" passera pour valide.
Tiré de http://java.sun.com/j2se/1.4.2/docs/api/
matches
public boolean matches()Attempts to match the entire input sequence against
the pattern.
If the match succeeds then more information can be obtained via the start,
end, and group methods.
Returns:
true if, and only if, the entire input sequence matches this matcher's
pattern
Entire input, ca veut dire qu'il faut que toute la chaine matche
l'expression non ?
Si tu supprimes la marque de fin de chaine ($), un fichier de nom "toto.xmlfoo" passera pour valide.
Tiré de http://java.sun.com/j2se/1.4.2/docs/api/
matches public boolean matches()Attempts to match the entire input sequence against the pattern. If the match succeeds then more information can be obtained via the start, end, and group methods.
Returns: true if, and only if, the entire input sequence matches this matcher's pattern Entire input, ca veut dire qu'il faut que toute la chaine matche l'expression non ?