Client script to validate whitespace in a Multi line text variable

Raghav17
Kilo Contributor

Hi,

Could you please suggest on how to restrict each item in a single line as well as to validate if there is whitespace in each line. Please see the image for reference.

find_real_file.png

 

Thanks in advance.

5 REPLIES 5

Maik Skoddow
Tera Patron
Tera Patron

Hi @Raghav 

can you please define what your understanding of "white space" is?

The line feeds are already white spaces!

Kind regards
Maik

Raghav17
Kilo Contributor

Yes, that is correct, the line feeds are already white spaces. Is there a way to restrict spaces in between each word in a single line?

Hi

I have found the following approach on the quick: https://regex101.com/r/kMBkx0/1

That regular expression works the other way round: if you include a space then it will be positiv, otherwise negative.

Kind regards
Maik

Hi @Raghav 

In case you think I was able to answer your question, I would be happy if you mark the appropriate response as "correct" so that the question will appear as resolved for other users who may have a similar question in the future.

If not, please tell me what you are still missing!

Many thanks & kind regards
Maik