Title: UK Post Code Regex/Match
Last modified: March 20, 2020

---

# UK Post Code Regex/Match

 *  [nickdgreen](https://wordpress.org/support/users/nickdgreen/)
 * (@nickdgreen)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/uk-post-code-regex-match/)
 * I have two issues with the same field. I have renamed the label on zip to Postcode(
   for a UK postcode). If I use the regex/match option no matter what ‘list’ of 
   regex parameters I use a valid postcode fails validation. Additionally, the error
   message isn’t being displayed; a red bar is shown above the registration form
   but the Message I have put in the Validation Message field is not shown.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fuk-post-code-regex-match%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/uk-post-code-regex-match/#post-12566158)
 * There is possibly a syntax issue with the regex.Take a look at this article which
   goes into some detail on how to use this feature: [Using RegEx Validation](https://xnau.com/using-regex-validation/)
 * About the error message, you need to look at the HTML source when it is displaying,
   look for some CSS that is overriding the plugin CSS and preventing the message
   showing.

Viewing 1 replies (of 1 total)

The topic ‘UK Post Code Regex/Match’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [postcode](https://wordpress.org/support/topic-tag/postcode/)
 * [regex](https://wordpress.org/support/topic-tag/regex/)

 * 1 reply
 * 2 participants
 * Last reply from: [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/uk-post-code-regex-match/#post-12566158)
 * Status: not resolved