Click here to Skip to main content
16,020,622 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I have a multi text area for the label called "Description" and that could match all characters,digits and special characters. Only condition is that it could have only maximum of 3 carriage return. If we have 4 carriage return hit, it should not match.

Eg : Valid case
123abc
fgtu566
ftuu344

Invalid Case (It should nonmatch since it have 4 carriage return)
123abc
fgtu566
ftuu344
ffrrtt3333

What I have tried:

Eg : Valid case
123abc
fgtu566
ftuu344

Invalid Case (It should nonmatch since it have 4 carriage return)
123abc
fgtu566
ftuu344
ffrrtt3333
Posted
Updated 22-Mar-23 3:52am
Comments
Mike Hankey 22-Mar-23 10:34am    
First: Your title is misleading and does not represent your problem.
Second: You have not shown the code that you have tried.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900