I am taking user input through UI, and I have to validate it. Input text should obey the following ondition
It should either end with one or more
white space characters OR with just
single ‘=’
I can use
“.*[\s=]+”
but it matches multiple ‘=’ also which I don’t want to.
Please help.
Begin string
Anything not “=” ( to avoid the double “==”)
One or more blank spaces OR one “=”
End of string
Should work 🙂