Regex para retornar múltiplas linhas entre duas PALAVRAS - Powershell

Regex para retornar múltiplas linhas entre duas PALAVRAS - Powershell

Estou tentando usar o seguinte regex:

(?<=----Old-------\n)(((.+\n)+)\n*?)(?=__________________________________________)

para obter palavras-chave multilinhas

----Old-------
250096 - LT Security Role: Read Only, 250032 - Sales VIC3, 250083 -
Security Role: Base Security Role, 250080 - Security Role: Payment
Allocation, 250058 - Security Role: TFM Sales Consultant, 250103 - Web
Fleet SuperUser

Mas a string selecionada não está retornando nada.

eu useihttps://regex101.com/ehttps://www.regexpal.com/e o Regex está funcionando conforme o esperado.

poderia ajudar por favor.

$ModifyOldRegex = "(?<=----Old-------\n)(((.+\n)+)\n*?)(?=__________________________________________)"    
$Description | Select-String  -Pattern $ModifyOldRegex.matches.Value

insira a descrição da imagem aqui

Responder1

Finalmente encontrei o problema:

1- Use get-Content -Raw para \n funcionar // Não sei por que

2- Mudou o Regex para

"(?<=----Antigo-------)((.+\n)+)(?=__________________________________________)"

informação relacionada