Good morning, I need to remove a double line break from a string variable, that is, to convert that double line break into a single line break, could you give me an example? Thanks
Take assign to string variable and give below value
System.Text.RegularExpressions.Regex.Replace(varStr, “^\s+$[\r\n]*”, String.Empty, System.Text.RegularExpressions.RegexOptions.Multiline)
Below screen for Refer.
[quote=“Pravin_Patil1, post:2, topic:298945”]
System.Text.RegularExpressions.Regex.Replace(varStr, “^\s+$[\r\n]*”, String.Empty, System.Text.RegularExpressions.RegexOptions.Multiline)
[/quote]perfect!! I would only need to be able to include the name of the file in a variable Thanks!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.