- Ctrl + H
- Encontre o que:
(?<=\d\.\d\d)\d+
OR\d\.\d\d\K\d+
- Substituir por:
LEAVE EMPTY
- Substituir todos
Explicação:
(?<= : start lookbehind, make sure we have
\d\.\d\d : a digit, a dot and 2 digits
) : end lookbehind
\d+ : 1 or more digits
outra alternativa:
\d\.\d\d : a digit, a dot and 2 digits
\K : forget what we have seen until this point
\d+ : 1 or more digits
- Verifique a expressão regular
Resultado para o exemplo dado:
<xml_taga>145.33</xml_taga>
<xml_tagb>125.12</xml_tagb>
<xml_tagc>42.12</xml_tagc>