- May
- 12,640
- 155
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?
Code:
v:\> do l in @quotes1.txt ( if %@regex["class.*SmallDataHeader","%l"] == 1 echo %@rereplace[".*right>|</td>",,%l]
)
122.92
122.92
122.92