# -*- coding: utf-8 -*-
'''
Created on 2020-11-9

@author: zhys513(254851907@qq.com)
'''
from opspipe.reg.scanner import regularExtrator


if __name__ == "__main__":
    text = '急寻特朗普，男孩，于2018年11月27号11时在陕西省安康市汉滨区走失。丢失发型短发，...如有线索，请迅速与警方联系：系18100065143，132-6156-2938，baizhantang@sina.com.cn 和yangyangfuture at gmail dot com'
    ex = regularExtrator(text) 
    #ex.split_txt()
    #ex.print_txt()
    #ex.print_list()
    #ex.scan_for_lists(['陕西'],['汉滨'])
    #ex.print_txt()
    #ex.print_list()
    ex.split_txt(r'：')
    ex.print_list()
    ex.scan_for_lists_p(r'\d{6}') 
    ex.print_list()
    ex.split_list(r'，')
    ex.print_list()
    ex.scan_for_mlists_p(r'\d{6}') 
    ex.print_list()