Is it possible to create a function to put the space in a UK postcode if entered wrong?

Is it possible to create a function to put the space in a UK postcode if entered wrong?

Is it possible to put a space or remove duplicate spaces in postcode entered into Billing Code? examples of incorrect postcodes: YO223BT should be YO22 3BT or if someone typed YO22  3BT > YO22 3BT etc...

If this were javascript I would use:        string . replace ( /(\S*)\s*(\d)/ , "$1 $2" ); 

which would put one space before the last number in the string. Is it possible to do similar in a function?

      • Sticky Posts

      • Connect with Zoho users from your industry, virtually!

        A couple of years ago, we started setting up industry-wise channels for users with similar businesses to chat and discuss Zoho contextually. We started with Real Estate and E-commerce sectors, creating a chatroom and hosting regular meetups on niche areas
      • Feature update: Advanced security settings

        We've previously written about how using security policies could be beneficial for admins. To enable you to better protect your organization, we've come up with a few additional settings for security policies in Zoho One that can be used to regulate your users' web sessions. What are web sessions? A web session refers to the period of time you stay signed in to your Zoho One account. You create a new web session every time you sign in to Zoho One (or any of its included apps), and this session exists