import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class sss {
public static void main(String[] args) {
String s="\"F039\":\"96\",\"F117\"";
String regex = "F039\":\"(.+?),\"F117";
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(s);
if (matcher.find()) {
System.out.println(matcher.group());
System.out.println(matcher.group().substring(7, matcher.group().length()-7));
}
}
}