- Ctrl + H
- Encontre o que:
\bangles\[\]=\{\K[^,]+,[^,]+
- Substituir por:
0,0
- Substituir todos
Explicação:
\b : word boundary, to be sure to match angles but not somethingangles
angles : literally angles
\[\]=\{ : literally []=, brackets have to be escaped as they have special meaning in regex
\K : Forget all we have seen until this point
[^,]+ : 1 or more any character that is not a comma, that matches also negative values
, : a comma
[^,]+ : 1 or more any character that is not a comma
- Verifique a expressão regular
- NÃO VERIFIQUE
. matches newline
Resultado para o exemplo dado:
angles[]={0,0,1.4066987};