Find Number of LineBreaks in String and Get Count of the LineBreaks in
String C#
Could anyone please suggest how to find count of linebreaks in a string.
Current in the below example code I have two breaklines. So how can I
print showing number as 2
String Str = "Hello <br /> How are You <br />"
Thanks!
No comments:
Post a Comment