Announcements
Hi everyone,
Is it possible to detect newlines in a string and possible to count how many there are?
Ex:
"zeftuef
dhfziehfizehf
efzef
zefzefzefz"
should result in 3 newlines.
Someone knows how?
Many thanks,
Ski
@SkiDK Yes, if I put this text into a label or multiple line textbox...
"zeftuef dhfziehfizehf efzef zefzefzefz"
...I can count the line breaks using this code.
CountRows(Filter(Split(Label1.Text,""), Result=Char(10)))
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hi @mdevaney ,
Works perfectly. Thank you!
Have a nice day.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 893
Valantis 571
11manish 482