# DATE regular expression apply

**URL:** <https://community.mp3tag.de/t/date-regular-expression-apply/53821>\
**Category:** Support\
**Created:** [July 21, 2021, 4:44pm UTC](https://community.mp3tag.de/t/date-regular-expression-apply/53821 "2021-07-21T16:44:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicky\_G](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nicky_g/32/9541_2.png) [@Nicky\_G](https://community.mp3tag.de/u/Nicky_G)\
**Post date:** [July 21, 2021, 4:44pm UTC](https://community.mp3tag.de/t/date-regular-expression-apply/53821/1 "2021-07-21T16:44:59Z")

</div>

The DATE field is usually made up of 4 digits  
mmgg 0405 (04/05/2021)  
I have files that mistakenly show me 3 numbers (405)

how can I set a regular expression that would detect if the DATE field has 3 numbers, add the 0 zero in front.

normally in notepad I would do this:  
search: (^ \ d {3} $)  
Replace: 0 $ 1

here maybe I should do:  
(^ \ d {3} $)% date%

but clearly it doesn't work because I don't know how to regex the tag fields

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [July 21, 2021, 4:49pm UTC](https://community.mp3tag.de/t/date-regular-expression-apply/53821/2 "2021-07-21T16:49:21Z")

</div>

It looks to me like you are already accustomed to regular expressions.  
So a look at the help for an action of the type "Replace with regular expression" may be enough assistance:

> **[Replace with Regular Expression – Mp3tag Documentation](https://docs.mp3tag.de/actions/replace-regexp/)**
>
> Documentation on the Replace with Regular Expression action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

**Author:** ![Nicky\_G](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nicky_g/32/9541_2.png) [@Nicky\_G](https://community.mp3tag.de/u/Nicky_G)\
**Post date:** [July 22, 2021, 10:04am UTC](https://community.mp3tag.de/t/date-regular-expression-apply/53821/3 "2021-07-22T10:04:56Z")

</div>

yes Ok I got there too, the problem that I can not understand how to apply it in reality.  
Can I link some examples on the forum?  
I already use the regexp in general but here I can't understand how to put them into practice since in the common use that I could do with NOTEPAD ++ my regexp works, but applied in Mp3Tag the same does not work, so there must be some application difference that in that guide it is not written or it is not clear to me how to do it.

I tried to search the forum but nothing.

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [July 22, 2021, 10:07am UTC](https://community.mp3tag.de/t/date-regular-expression-apply/53821/4 "2021-07-22T10:07:56Z")

</div>

> [@Nicky\_G](#):
>
> search: (^ \ d {3} $)

could be: `^(\d\d\d)$`

> [@Nicky\_G](#):
>
> Replace: 0 $ 1

should be: `0$1`

> [@Nicky\_G](#):
>
> that I could do with NOTEPAD ++ my regexp works

Test your expressions in Converter\>Tag-Tag, not in Notepad

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:29pm UTC](https://community.mp3tag.de/t/date-regular-expression-apply/53821/5 "2026-02-09T12:29:19Z")

</div>


