# splitting long numbers

**URL:** https://community.mp3tag.de/t/splitting-long-numbers/9197
**Category:** General Discussion
**Created:** [October 24, 2009, 12:59pm UTC](https://community.mp3tag.de/t/splitting-long-numbers/9197 "2009-10-24T12:59:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jazzcat82](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jazzcat82](https://community.mp3tag.de/u/jazzcat82)
#### Post date: [October 24, 2009, 12:59pm UTC](https://community.mp3tag.de/t/splitting-long-numbers/9197/1 "2009-10-24T12:59:09Z")

</div>

I have files that have sets of numbers that I want to seperate with spaces or dashes.

Example: 550424

55 is the year  
04 is the month  
24 is the day

So I would like the result to be 55 04-24

I am thinking RegEx would work but I have no idea on how to do it.

if it was 55-04-24 it would be simple:)

Thanx ahead of time!!!

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [October 24, 2009, 1:52pm UTC](https://community.mp3tag.de/t/splitting-long-numbers/9197/2 "2009-10-24T13:52:24Z")

</div>

Yes, regular expressions can do that 🙂

_Action type:_ **Replace with regular expression**  
_Field:_ **Type in the field here**  
_Regular expression:_ **(\d{2})(\d{2})(\d{2})**  
_Replace matches with:_ **$1 $2-$3**

---

<div class="post-metadata">

### Author: ![jazzcat82](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jazzcat82](https://community.mp3tag.de/u/jazzcat82)
#### Post date: [October 29, 2009, 2:26am UTC](https://community.mp3tag.de/t/splitting-long-numbers/9197/3 "2009-10-29T02:26:52Z")

</div>

Wow!!! Simply Amazing!! It works great! Thank-you soooo much! and congrats on winning gold!!
