+ 4
Java Regex. How to define this pattern?
Does anybody have an idea, why does it print out 'incorrect' for the first case? It should be 'correct'. https://code.sololearn.com/cWpefEITr4Z4/?ref=app
2 Answers
+ 2
James
Thank you for the answer. However, this solution still does not meet all of my expectations. Do you have any idea how to apply this pattern only for the last character of the filename? (the one followed by '.txt'?
0
Up.