How to trim or split string in this scenerio?

Hello experts!
how to trim string? i have uses string.Replace(" ", “”) but it didn’t worked for me.
Any next idea for this ?
Please help me out !

String to Trime is below:

"RESERVED

(FOREIGNEMPLOYMENT)"

Hi @Prabin_Chand

So you mean to replace a enter in string?

If so please try

Str.Replace(environment.newline(),””)

Or try system.text.regularexpressions.regex.replace(str,”\s”,””)

The second will replace all kinds of spaces

PS:
If you are copy pasting please replace inverted comma again with inverted comma in your code

Cheers

Thanks myan !

1 Like

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