Hi,
I have a form with an address field in which we are allowing alphabetical characters, accented characters, numbers, hyphens and apostrophes.
I have the following regular expression applied to the field.
^[A-ZÁÉÍÓÚáéíóúa-z0-9][A-ZÁÉÍÓÚáéíóú a-z0-9'\-]*[A-ZÁÉÍÓÚáéíóúa-z0-9]$
This seems to work correctly on the form itself but whenever I include an apostrophe in my data the submission fails with the error shown below. I could circumvent this issue by using custom javascript to validate but where possible I would like to make use of the backend validation. Does anyone have a suggestion on how to fix this? Is there any problems with my regex itself?
Atm I'm guessing it's something to do with string encoding or anti injection procedures on the backend.