Skip to main content
Question

How do I automatically add a space in specific positions within UK postcodes for consistent formatting?

  • September 4, 2023
  • 1 reply
  • 90 views

Kiwi1007

Hello,

I am looking at how to ensure that there is a space in the postcodes I want to use as sometimes when they are entered in there is no space and this can cause an error when processing a workflow output so I want to use ZAP to ensure ensure that the output of all post codes irrespective if a space is added or not then the output always has a space.

An example is LS249TK or LS24 9TK.

I know that going from the end of the postcode the 4th character from the right should always be a space.

Any help would be appreciated.

 

Regards

 

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • September 4, 2023

Hi @Kiwi1007 

Good question.

A Code step can be used: https://zapier.com/apps/code/help

Try asking ChatGPT for help with the custom code.