How to delete "\n" generate from matches

hi everyone
i have problem when i use text generate from matches, it make me cant use type into to type full text.
when i check log message the text have \r\n it make new line, so how to delete \n ?
please help me. thanks
image

i use JS regex :link

Hi,

Can you try String.Replace method as the following?

yourString.Replace(vbLf,"")

Regards,

i have tried, but it not work

Hi,

Can you share your string data as a file, if possible? WriteTextFile activity will help you.

Regards,

example.7z (340.0 KB)
here is my file xaml

it had deleted \n but i dont know why log message still create new line

Hi,

It’s probably because \r remains.
If you want to remove both \n and \r, the following helps you.

yourString.Replace(vbCr,"").Replace(vbLF,"")

This deletes \r , \n and \r\n.

Regards,

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