regular expression not working for uppercase

Gordon shared this problem 10 months ago
Solved

Testing regular expression for input text validation event

Tested with regex101 matching at least one upper case letter ^(?=.*[A-Z]).+$

But when run inside Justinmind to test input filed condition, it does not work properly.

Tested for ^(?=.*[0-9]).+$ and it works to match at least one digit.

Is there a reason and is there a better way to test for at least one upper case letter

Comments (6)

photo
1

Hi Gordon,

Make sure you're putting the RegEx function in your expression. We have attached a prototype with the expression you created and it works. Check it out and let me know if you have any questions.

Best,

Danielle

photo
1

Sorry I did not use reply. I think your offered solution masks the problem. See my reply and test prototype I have supplied to show.

Files: test.zip
photo
1

Thanks for attaching the file. We've discovered a bug with Regex and we're going to fix this soon. I'll update you when we have a resolution.

photo
1

thanks :-)

photo
1

Hi Gordon,

We've fixed this issue in an update (version 8.6) today.

Best,

Danielle

photo
photo
1

Hi Danielle,


I have attached a prototype with two input fields and texts for result.

Top (filed + text): test for at least one upper case, text changes to true if any lower case is type (problem)

Bottom (filed + text): test for at least one digit, text changes correctly (not a problem)

I still think this is a problem in the application engine.

Files: test.zip