Quoting @Function parameters?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
The lines in quotes1/txt contain HTML tags. The command below fails miserably if I don't quote %l in @REGEX but such quoting is not needed in @REREPLACE. In fact. if I quote %l in @REREPLACE it doesn't work correctly; the quotes are treated as part of the string. What's the difference? Is there some rule at play that will make remembering what's needed easier?
v:\> do l in @quotes1.txt ( if %@regex["class.*SmallDataHeader","%l"] == 1 echo %@rereplace[".*right>|</td>",,%l]