Java regular matching digit string

I want to extract

SyncKey =  {"Count": 4,"List": [{"Key": 1,"Val": 694398478},{"Key": 2,"Val": 694398818},{"Key": 3,"Val": 694398792},{"Key": 1000,"Val": 1525475042}]}

four numbers after val. How to write the regular expression

?
Mar.09,2021

there are many good parsing tools for json data. If javascript, is even built-in, regular is not recommended.
reason:

1. ;
2. ;
3. ,, .

however, since you have to, you can try this:

js:

    import java.util.regex.*;
    
    
     public class RegTest{
     
        public static void main(String[]  args){
            String SyncKey = "{\"Count\": 4,\"List\": [{\"Key\": 1,\"Val\": 694398478},{\"Key\": 2,\"Val\": 694398818},{\"Key\": 3,\"Val\": 694398792},{\"Key\": 1000,\"Val\": 1525475042}]}";
            
            Pattern p = Pattern.compile("\"Val\":\\s*(\\d+)");
            Matcher m = p.matcher(SyncKey);
            
            while (m.find()) {
                System.out.println(m.group(1));                    
            }        
            
        }
    
    }
Menu