Regex for remove newline

i have this text

  1. Resgate de 30% da reserva total livre da Carência do Ano Civil 
    

10.000,00
2) X Resgate de R$ _________ (valor limitado a 30% da reserva livre da Carência do Ano Civil)

and i want this output

  1. Resgate de 30% da reserva total livre da Carência do Ano Civil 
    

10.000,00
2) X Resgate de R$ _________ (valor limitado a 30% da reserva livre da Carência do Ano Civil)

i dont wanna have all text in a line, i need only remove empty lines

@luchovelez - your input and Output looks like same…please let us know what you exactly want to extract from your input?

i need extract only the number
can be any number in currency format with 2 decimal

@luchovelez - is it 10,000.00 ?? please clarify

@luchovelez - Are you looking something like this? i.e to extract any numbers with comma separated with 2 decimal places…

image

1 Like

inverse 10.000,00

@luchovelez - This is not 2 decimal…

I am confused??

my decimal format in my country is with , not with .

@luchovelez - ok, try this pattern…

(\d{1,3}(.\d{1,3})*|(\d+))(,\d{1,2})

If this solves your query, please mark this post as solution.

1 Like

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