Insert dashes in text
Options
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
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback