package com.lichader.alfred.util.parser;

import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;

public class BSETrackingPageParser {

    public List<BSETrack> extractTrackingInfo(Document document) throws IOException{

        Elements results = document.select("#oTHtable tr");

        return results.stream().skip(1).map(o -> {
            return new BSETrack(o);
        }).sorted(Comparator.comparing(BSETrack::getTime)).collect(Collectors.toList());
    }

    public static class BSETrack{
        private LocalDateTime time;
        private String location;
        private String status;

        public BSETrack(Element element){
            Elements tds = element.select("td");

            String timeText = tds.get(0).text();
            time = LocalDateTime.parse(timeText, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"));
            location = tds.get(1).text().replaceAll("[ |　]", " ").trim();
            status = tds.get(2).text().trim().replaceAll("　","").trim();
        }

        public LocalDateTime getTime() {
            return time;
        }

        public void setTime(LocalDateTime time) {
            this.time = time;
        }

        public String getLocation() {
            return location;
        }

        public void setLocation(String location) {
            this.location = location;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }
    }
}

@@ -365,16 +365,119 @@
 rser %7B%0A%0A
+    private final static String CJK_SPACE = %22%5B %7C%E3%80%80%5D%22;%0A    private final static String ENG_SPACE = %22 %22;%0A%0A
     publ
@@ -1229,20 +1229,28 @@
 All(
-%22%5B %7C%E3%80%80%5D%22, %22 %22
+CJK_SPACE, ENG_SPACE
 ).tr
@@ -1316,14 +1316,27 @@
 All(
-%22%E3%80%80%22,%22%22
+CJK_SPACE,ENG_SPACE
 ).tr

Put the regex into a variable