Insert dashes in text

Dom Clegg
Member ✭
Hey,
I have a text string as follows: 12345678. I want to insert a dash between every 2 letters.
E.g. 12345678 becomes 12-34-56-78
How can i use the text filters to this?
Thanks!
I have a text string as follows: 12345678. I want to insert a dash between every 2 letters.
E.g. 12345678 becomes 12-34-56-78
How can i use the text filters to this?
Thanks!
Comments
-
I'd do a for loop iterating over the length of the string. I think easier to show than tell so I made a quick vid on the subject: https://www.loom.com/share/70de3a05e69e4356811ad4079d2eaccf
-
Thanks Ray 🙂
Categories
- 2.1K All Categories
- 43 📣 Announcements
- 32 🦾 Releases
- 22 👋 Welcome
- 541 🤷 Help! I'm a Noob
- 38 📱 No-Code Front-Ends
- 417 🌐 Working with APIs
- 274 🔢 Transforming data
- 100 🔌 Connect Xano to ...
- 11 🧑💻 Find an Expert
- 234 ❓Other questions
- 9 🔐 Security
- 13 ✂️ Snippets
- 13 🏆 Showcase
- 3 🗣️ Xano Chatter
- 48 📺 Video Tutorials
- 141 🙏 Request a feature
- 155 🐞 Report a Bug
- 14 🚀 Templates & Extensions