@louis Li,
I realize that $dt is a loop variable but what did you intend that "dt" stand for? I'd also like to know why the use of $1? Why not give it a more readable name or is that required to be numerically name due to position or???
Also, why any abbreviations? Why not make the code more self documenting with only slightly longer names?
How does this handle embedded delimiters?
Last but not least, I know this was meant to be a short "spackle" style article but a lot of people could end up using something like this. Do you have any performance figures for this method?
--Jeff Moden
Change is inevitable... Change for the better is not.