I have a line like this:
String str = "Friday 1st August 2013"
I need to check: if the string contains "any number" followed by the string "st", type "yes", otherwise type "no".
I tried: if ( str.matches(".*\\dst") ) and if ( str.matches(".*\\d.st") ) , but it does not work.
Any help?
Frank source share