Repolite date format
I would like to convert "19-02-2021" at the beginning of the file name in "2021-02-19".
How do I do that?
How do I do that?
Reply to #1:
Replace method:
Replace: (\d+)-(\d+)-(\d+)
Replace with: \3-\2-\1
Occurrence: First
Use regular expressions
Apply to name
Replace method:
Replace: (\d+)-(\d+)-(\d+)
Replace with: \3-\2-\1
Occurrence: First
Use regular expressions
Apply to name
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?
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?
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
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
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
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