I have the same problem in my PDF reports. That’s why I use this expression to limit the user to enter max. 6 NewLines. It was once a Hint from @Aleksi in good old Google+ times saying:

*Basically you could find all paragraph breaks if you split the string one by one. I’m saying this… find the first one and split it with the combination of LEFT and RIGHT expressions. When you have that 6 times, you should not able to find any more. If TRUE, the user has added too many.*

```
FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))))) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))))))) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))))) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]) - FIND("
" , RIGHT([LongText] , LEN([LongText]) - FIND("
" , [LongText]))))))))))) = 0
```

But this is counting only the Lines Breaks. A user could enter loooooong text in just 1 Line and could break the limit.

By the way: When a user writes something like this:

```
"This is my first Line. After that I will press Enter
"
```

The Line Break at the end will be ignored by AppSheet. Good News

**EDIT: This is no more the case!**