Pienso que tengo al menos algunas respuestas a mi pregunta:
La mayor parte de mi problema fue causada en realidad por un script personalizado que estaba ejecutando. Ejecutar el script al final, en lugar de al principio, permitió que mis ediciones en changes.txt se realizaran. No estoy seguro de por qué, pero eso parece ser la respuesta.
También, creo que "." no captura saltos de línea. Tanto [.\r\n] como [\s\S] parecen funcionar para capturar todo.
Por alguna razón que realmente no entiendo, esto funcionó:
'\\v \d+ LATER([\s\S]*?)(?=\\v)' > ''
pero esto no
'\\v \d+ LATER([\s\S]*?)\\v' > '\\v '
[Desahogo lateral: Echan de menos mucho cuando el foro permitía Markdown.]
I think I have at least a few answers to my question:
Most of my problem was actually caused by a custom script I was running. Running the script at the end, rather than the beginning, allowed my changes.txt edits to take place. I'm not sure why, but that seems to be the answer.
Also, I think that "." doesn't capture new lines. Both [.\r\n] and [\s\S] seem to work to capture everything.
For some reason that I really don't understand, this worked:
'\\v \d+ LATER([\s\S]*?)(?=\\v)' > ''
but this didn't
'\\v \d+ LATER([\s\S]*?)\\v' > '\\v '
[Side rant: I really miss when the forum allowed Markdown.]
Traducción automática desde English