import java.util.*;
import java.util.regex.*;

class Demo {
    static public void main(String[] args) {
        String[] arr = {
            "Sales Tax 08/07 09/06 0.42",
            "Sales Tax 02/07 02/14 -1.02"
        };
        Pattern pattern = Pattern.compile("^([a-zA-Z ]*) ([0-9]{2}/[0-9]{2} [0-9]{2}/[0-9]{2}) (-?[0-9]*\\.[0-9][0-9])");
        
        for (String str : arr) {
            Matcher matcher = pattern.matcher(str);
            if (matcher.find()) {
                System.out.println("String Name::"+matcher.group(0));
                System.out.println(matcher.group(1));
                System.out.println(matcher.group(2));
                System.out.println(matcher.group(3));
                System.out.println();
            }
        }
    }
}
