Repolite date format

Advanced Renamer forum
#1 : 23/03-25 15:56
Hubert
Posts: 14
I would like to convert "19-02-2021" at the beginning of the file name in "2021-02-19".
How do I do that?
#2 : 23/03-25 16:23
Styb
Posts: 173
Reply to #1:
Replace method:

Replace: (\d+)-(\d+)-(\d+)
Replace with: \3-\2-\1
Occurrence: First
Use regular expressions
Apply to name

edited: 23/03-25 16:31
#3 : 23/03-25 16:39
Hubert
Posts: 14
Reply to #2:
Thanks. I would never have thought of it. I don't understand it yet. Can you read the connections on which your attitude is based somewhere so that it can understand it?
#4 : 23/03-25 17:11
Styb
Posts: 173
Reply to #3:
On this website: https://regexone.com/ you can find some exercises to learn the basics of regular expressions.
Inside the ARen, you can click on </> to get some commands useful for writing regular expressions.

For the question of this thread: (\d+) represents a subgroup consisting of several digits, and the (\d+)-(\d+)-(\d+) matches the data format in your example. Each subgroup is identified by a number, so \3-\2-\1 corresponds to 2021-02-19. For example \3-\2-\3 corresponds to 2021-02-2021.

I'm not an expert, on this forum Delta Foxtrot & Miguel are masters of Regex.

https://i.postimg.cc/xT7bRwwR/Img119.png

edited: 23/03-25 17:19
#5 : 24/03-25 19:42
Hubert
Posts: 14
Reply to #4:
Danke für die Tipps. Bin am Testen.
Ich möchte eine Datei „datei nummer fehler“ in neue Schreibweise „datei fehler nummer“.
Versucht habe ich es mit Methode Ersetzen:
Ersetzen: (\w+) (\w+) (\d+)
Ersetzen durch: \1-\3-\2
Vorkommen: Zuerst
Reguläre Ausdrücke verwenden
Auf Namen anwenden

Leider funktioniert es nicht. Irgendwo ist ein Fehler.

Habe es gefunden:
Ersetzen: (\w+) (\w+) (\d+)
Ersetzen durch: \1 \3 \2
Vorkommen: Zuerst
Reguläre Ausdrücke verwenden
Auf Namen anwenden

edited: 24/03-25 19:50