+ 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

31st Jul 2018, 8:45 AM
Steppenwolf
Steppenwolf - avatar
3 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'?
31st Jul 2018, 10:59 AM
Steppenwolf
Steppenwolf - avatar
0
Up.
15th Aug 2018, 10:27 PM
Steppenwolf
Steppenwolf - avatar