I am experimenting with Cognito Forms' new feature of text input validation by use of Custom Regular Expressions. I was asked by one of our departments to make the name fields autocorrect so as to make the first character of each uppercase if the user or person filling out the form accidentally leaves it lowercase. I got the regular expression that I want to use:
However, every time I click SAVE the Reformat Expression box becomes blank, and the Custom Regular Expression doesn't work as expected.
I used RegEx to test my regular expression format to make sure it's correct, and I even used the custom error message on the Cognito Forms app to make sure the form is reading the regular expression correctly. But for whatever reason, it won't accept the Reformat Expression I enter.
Does anyone have any idea or have any more experience with regular expressions used in Cognito Forms?