insertImg
import re
from reSource0 import mainConversion
 
class insertImg(mainConversion):
    '''
    this function link to outside image
 
    input : [img "link/*.jpg"]
    output : <img src = "link/*.jpg">
    '''
    def __init__(self):
        self.expand = r'\g<start><img src="\g<imgLink>">\g<end>'
        self.pattren = r'(?P<start>.*?)(?:(\[)img[\s]+)(?P<imgLink>.*)(?:[\s]*(\]))(?P<end>.*)'