don't display some extra lines in backtrace.
rewrote matching algorithm again. It now rocks!

http://regex101.com/r/sK4vO1
Convert templates.