I've added a UK style postcode field to a form and have trying to use regex to validate the client's postcode and can't get it to work.
I am usng the input field labelled regex but is not clear how the regex string should entered - enclosed in single or double quotes, brackets? As is without delimiters? As a result I'm not sure whether it is my regex string that is wrong.
The raw regex string is: