If this is in the wrong area please let me know!
I have revently installed Eclipse 3.1.1 and have been plugging away. I attempted to use a regex that seemed fairly straight forward for validating some input but it seems that Eclipse or Java does not like certain escape clauses (\.) for example.
I am using jdk 1.4 and have forced compatibility to 1.4 for all source and compiled objects. Not sure what else there is. Java docs say this should work.
String regPattern = "([0-4[^2]][0-9][0-9][0-9][0-9][1-9])(\.[0-9][0-5])?";
The compile error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )