The dot (.) matches anything (except for a newline) in regular expression

If you want to match (.) in the test string, you need to escape the dot by using a slash \..
In Java, use \\. instead of \..

Comments

Popular posts from this blog

Check MySQL query history from command line