Regex not accepted by UiPath

I came up with this RegEx, regex101: build, test, and debug regex

The desired output would be to get the last “3.003,80”.
“VALOR LIQUIDO DA NOTA =” is static, the numeric values around it are dynamic.

For some reason it won’t be accepted by UiPath.

Could you guys help me fixing the expression? Or perhaps even change the settings in the Matches activity?

The entire text:

@"Número da Nota
PREFEITURA MUNICIPAL DE MARÍLIA 000069529
SECRETARIA MUNICIPAL DA FAZENDA Autenticidade
NOTA FISCAL ELETRÔNICA DE SERVIÇOS NQKM-7BOQ
Data Emissão
09/04/2021
PRESTADOR DE SERVIÇOS
Nome/Razão Social: SPSP - SISTEMA DE PRESTACAO DE SERVICOS PADRONIZADOS LTDA
C.P.F./C.N.P.J.: 66.494.923/0001-55 I.M.: 54843 I.E: ISENTO Fone: 55 14 33114000
Endereço: R CARLOS RIBEIRO DE ASSIS, 10 - FRAGATA - CEP: 17.519-256
Município: MARILIA UF.: SP
TOMADOR DE SERVIÇOS
Nome/Razão Social: COOPERATIVA DE CREDITO E INVESTIMENTO DE LIVRE ADMISSAO VANGUARDA DA REGIAO DAS
C.P.F./C.N.P.J.: 78.414.067/0064-43 I.M.: I.E.:
Endereço: R SETE DE SETEMBRO 556 - CENTRO - CEP: 12.120-000
Município: TREMEMBE UF: SP
E-mail: gabriel_fronza@sicredi.com.br; coop0710_financeiro@sicredi.com.br

DISCRIMINAÇÃO DOS SERVIÇOS

Vencimento: 03/05/2021
Ref: Abril/2021
Periodo: 01/04/2021 ate 30/04/2021
Serv. Prest. em : TREMEMBE - SP
Ret. ISS por conta do TOMADOR de serviço - 3,00 = 90,11
Serv. Prest.: SERVICOS DE LIMPEZA Valor: 3.003,80
Valor Liquido a pagar: 2.413,56
Valor aproximado dos tributos: R$ 367,96

Consulte a autenticidade desta Nota Fiscal através Situação de Tributação
do site: https://marilia.sigiss.com.br/marilia/consulta Não Tributada no Municipio

Código do Serviço: 710 - LIMPEZA MANUTENCAO E CONSERVACAO DE VIAS E LOGRADOUROS

I.N.S.S. (R$) I.RENDA (R$) PIS (R$) COFINS (R$) CSLL (R$)
330,42 30,04 19,52 90,11 30,04
Os valores acima referem-se as retenções de tributos administrados pela União,
sendo de responsabilidade do Tomador e não implicam na base de cálculo
Total deduções Base de cálculo Alíquota (%) Valor do ISS Valor Total da Nota
0,00 3.003,80 3,00 90,11 3.003,80

VALOR LIQUIDO DA NOTA = R$ 2.413,56"

Hi,

Can you try the following pattern?

[\d*.\d*,\d*]+(?=\r?\n\r?\nVALOR LIQUIDO DA NOTA)

Regards,

2 Likes

Thanks, you fixed it!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.