I need to write a Java Comparator class that compares Strings, however with one twist. If the two strings it is comparing are the same at the beginning and end of the strin
In your given example, the numbers you want to compare have spaces around them while the other numbers do not, so why would a regular expression not work?