REGEX Matches

Hello, team!

I’m trying to builg a REGEX expression to get exactly the name: HELOÍSA NOGUEIRA PAIXÃO
I tryed: \w[A-ZÀ-Ú]+\s\w[A-ZÀ-Ú\s]+ and it’s working in here https://regexr.com/ but when it comes to UiPath Matches Activity, this error below comes.

How could I just ignore this error when it appears? Cause I’m sure regex won’t be able to get the data always cause it’s coming from a OCR extraction. It’s not 100% reliable.

The fulltext:
Ao(dj 09 dia(3) do mês de Abril de 2009, nesta cidade do(e) Rio
de Janeiro e em cartório, compareceu Jorge Paixão do Rosário,
natural do(e) Rio de Janeiro-RJ, montador de aut03, Divorciado, com
42 anos de idade , documento de identidade xxxxxxxxx - DETRAN-RJ,
Data de Emissão: 12/02/2009, residência: Relacionada Abaixo; tendo
declarado o nascimento de HELOÍSA NOGUEIRA PAIXÃO, ocorrido ao(s)
08 dia(s) do mês de Abril de 2009, às 04:5x horas, no(a) A33ociação
Pro Matre, Rio de Janeiro-RJ, do sexo femixino, filho(a) do
deciarante e de Sarnia Nogueira Lima, ela natural do(e) Rio de
Janeiro-RJ, com 34 ano(s) pox724 - IFP-RJ, Data de Emi33ão:
04/11/1991, residente na Av. Metrópole, lote 14,qd.52,Jardim
Metrópole, São João de Meriti-RJ . Avós paternos: Walxxmar do
Rosáxxo e Antxonia dxxão. Avós maternos: Djalma Assumpção
Pereira Lima e Vera Lucia Barros Nogueira. Dispensadas as
testemunhas, na forma do artigo 529 da Consolidação Normativa ca
C.G.J. . DNV - 41332285.

@Caio_Dultra You can try text directly since as your saying text won’t
“HELOÍSA NOGUEIRA PAIXÃO” instead of regex pattern. If text is dynamic only then go for regex pattern.

If only multiple matches available in your input text then use matches activity otherwise use match activity.

Regarding your error that might because of the input variable doesn’t have the value. Please the value of variable once.

1 Like