Parser Resource0
import re
 
#abstractmethod
class mainConversion(object):
    def __init__(self):
        pass
 
    def sentenceConver(self,sentence):
        re_sentence = ''
        match = re.search(self.pattren,sentence)
        if match:
            re_sentence += match.expand(self.expand)
        else:
            re_sentence += sentence
        return re_sentence
 
    def conver(self,content):
        strlist = self.split(content)
        res = ''
        for line in strlist:
            while re.search(self.pattren,line):
                line = self.sentenceConver(line)
            res += line + '\n'
        return res
 
    def split(self,content):
        return content.split('\n')
 
class moduleConversion(mainConversion):
    def conver(self,content, page = None):
        pass