Manipulacion de String

hola a todos, este es mi primer post, tengo el siguiente string extraido de un PDF estructurado, donde los valores pueden ir variando segun el siguiente ejemplo:

"307018 1 177.919 160.127 17.792

307018 1 177.919 160.127 17.792

101008 1 71.134 64.021 7.113"

y necesito que quede de la siguiente manera
“307018 1 177.919 160.127 17.792
307018 1 177.919 160.127 17.792
101008 1 71.134 64.021 7.113”

para ir procesando linea a linea… con regex no logre realizarlo
alguna ayuda?

Hi @Fernando_Montano

Can you explain more about your query? I can’t able to understand

Regards
Gokul

Hi @Fernando_Montano

You try with this expression in the For Each

System.Text.RegularExpressions.Regex.Matches(variable1,"\S.+")

This will get you the seperate lines matches so that you can use them seperately

Regards
Sudharsan

1 Like

Funcionó! Thanks!

Great @Fernando_Montano

Kindly mark your solution and close the topic so that it will be usefull to others