Dear all,
I have a problem to understand this case :
import java.util.regex.*;
Compilation should be failed at line 7 because the presence of an Illegal escape character.
But if i change the program :
...
Pattern p = Pattern.compile(args[0]);
...
then i run the application by invoking command line :
java Regex "\d"
the application runs successfully, but actually i expect the compilation failed at line 7. Someone please explain this to me.