<repo_name>zhangchch/exercise7<file_sep>/lib/quantified_group.js
module.exports = function (str) {
    var arr = str.split(/\s/);
    arr = arr.filter((item) => item);
    if(arr.length != 8) {
        return false;
    }
    arr.forEach((item) => {
        let regExp = /Ox[A-Fa-f0-9]{2}/;
        if(!regExp.test(item)) {
            return false;
        }
    });
    return true;
}<file_sep>/lib/capture.js
module.exports = function (str) {
    let regExpNum = /.*\bx=([1-9][0-9]*)\b.*/;
    if(Array.isArray(regExpNum.exec(str))) {
       return regExpNum.exec(str)[1];
    }
    return null;
}