「前端」B站評論/彈幕過濾器

    regexpTaobao = regexp.MustCompile(`¥([\w\s]+)¥`)
    regexpURL = regexp.MustCompile(`(?:http|https|www)(?:[\s\.:\/\/]{1,})([\w%+:\s\/\.?=]{1,})`)
    regexpWhitelist = regexp.MustCompile(`((acg|im9|bili|gov).*(com|html|cn|tv)|(av\d{8,}|AV\d{8,}))`)
    regexpQQ = regexp.MustCompile(`(?:[加qQ企鵝號碼\s]{2,}|[羣號]{1,})(?:[\x{4e00}-\x{9eff}]*)(?:[:,:]?)([\d\s]{6,})`)
    regexpWechat = regexp.MustCompile(`(?:[加+微++➕薇?vV威衛星♥❤姓xX信]{2,}|weixin|weix)(?:[,❤️.\s]?)(?:[\x{4e00}-\x{9eff}]?)(?:[:,:]?)([\w\s]{6,})`)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章