KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like to test if a string ends with a a digit. I expect the following Java line to print true. Why does it print false? System.out.println("I end with a number 4".matches("\\d$"));
Tags (comma-separated)
Save Edits
Cancel