test string = "<!-- tmpl:loop %abc% -->"
pattern1 match
regs[0] = ''
regs[1] = 'loop'
regs[2] = 'abc'
regs[3] = ''
test string = "<!-- tmpl:endloop %abc% -->"
pattern1 match
regs[0] = ''
regs[1] = 'endloop'
regs[2] = 'abc'
regs[3] = ''
test string = "<!-- tmpl:def %abc% -->"
pattern1 match
regs[0] = ''
regs[1] = 'def'
regs[2] = 'abc'
regs[3] = ''
test string = "<!-- tmpl:ifdef %abc% -->"
pattern1 match
regs[0] = ''
regs[1] = 'ifdef'
regs[2] = 'abc'
regs[3] = ''
test string = "<!-- tmpl:ifndef %abc% -->"
pattern1 match
regs[0] = ''
regs[1] = 'ifndef'
regs[2] = 'abc'
regs[3] = ''
test string = "<!-- tmpl:else -->"
pattern2 match
regs[0] = ''
regs[1] = 'else'
regs[2] = ''
regs[3] = ''
test string = "<!-- tmpl:endif -->"
pattern2 match
regs[0] = ''
regs[1] = 'endif'
regs[2] = ''
regs[3] = ''
test string = "<!-- tmpl:ext2php %abc% -->"
pattern1 match
regs[0] = ''
regs[1] = 'ext2php'
regs[2] = 'abc'
regs[3] = ''