I have a String=“UiPath
Forum” But I Need it as Single line
“UiPath Forum” Suggest a method to resolve it
yourStringVariable=“UiPath
Forum”
singleLineString = yourStringVariable.Replace(vbCrLf, " ")
Hope it helps!!
1 Like
Hi @Gopikrishna_S ,
Could also Check with the below :
System.Text.RegularExpressions.Regex.Replace(yourVarStr,"\s*\r?\n\s*"," ").Trim
Working Fine Thanks Pravallikapaluri
Working Fine Irtetala
1 Like
@Gopikrishna_S
Welcome Happy automation.
This Expression Also Working Well SupermanPunch
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.