Acho que tenho pelo menos algumas respostas para a minha pergunta:
A maior parte do meu problema foi causada por um script personalizado que eu estava executando. Executar o script no final, em vez do início, permitiu que as minhas edições no changes.txt fossem aplicadas. Não tenho certeza por quê , mas parece ser essa a resposta.
Também, acho que "." não captura novas linhas. Tanto [.\r\n] quanto [\s\S] parecem funcionar para capturar tudo.
Por algum motivo que realmente não entendo, isso funcionou:
'\\v \d+ LATER([\s\S]*?)(?=\\v)' > ''
mas isso não
'\\v \d+ LATER([\s\S]*?)\\v' > '\\v '
[Desabafo lateral: sinto muito a falta de quando o fórum permitia 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.]
Tradução automática de English Mostrar original