I need regular expression

If you need help on how to use the program
Post Reply
fulvio53s03
Posts: 744
Joined: 2007-04-28 05:46:43
Location: Italy

I need regular expression

Post by fulvio53s03 »

Ho bisogno di una espressione regolare per cambiare una serie di titoli tradotti da:
serie telefilm (st. 1 h264) mio 10ep
in:
serie telefilm (prima stagione)
Come posso fare?
grazie!

I need a regular expression to change a series of translated titles from:
serie telefilm (st. 1 h264) mio 10ep
in:
serie telefilm (prima stagione)
How can I do it?
Thank you!
cosanostra
Posts: 14
Joined: 2020-01-23 16:50:03

Re: I need regular expression

Post by cosanostra »

Jeśli chodzi Ci o zmianę nazw kilkudziesięciu plików to najprościej dal Ciebie będzie uźyć programu totalcommander i tam zanaleść "Narzędzie wielokrotnej zmiany" (CTRL+M)

A jeśli dodajesz pojedyńczo do swojej bazy danych programu AMC to w ustawieniach programu masz w opcjach (Preferencje - F10) tam po lewo znajź napis
"Film / Dodatkowe informacje" i dwa pola niżej "Import plików multimedialnych" wtedy po prawej kliknij przycisk "Filtrój nazwę pliku"
W nowo otwartym oknie będziesz mógł dodać własne regóły nazw plików.


If you want to change the names of several dozen files, the easiest way for you will be to use the totalcommander program and find the "Multiple rename tool" there (CTRL + M)

And if you add the AMC program individually to your database, in the program settings you can find the inscription in the options (Preferences - F10) on the left.
"Movie / Additional information" and two fields below "Import media files" then on the right click the "Filter file name" button
In the newly opened window you will be able to add your own filename rules.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: I need regular expression

Post by antp »

fulvio53s03 wrote: 2024-01-28 18:52:06 I need a regular expression to change a series of translated titles from:
serie telefilm (st. 1 h264) mio 10ep
in:
serie telefilm (prima stagione)
How can I do it?
It seems I missed your post, sorry.
Assuming you want to keep what is before the parenthesis, in case you still need it, the following regular expression could be used:
(.+) \(.+
And using "$1 (prima stagione)" as replacement.
fulvio53s03
Posts: 744
Joined: 2007-04-28 05:46:43
Location: Italy

Re: I need regular expression

Post by fulvio53s03 »

Thanks, it is perfect. :)
It seems to me that there are various types of encoding for regular expressions.
Where can I find a guide with examples to use them in AMC scripts?
:grinking:
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: I need regular expression

Post by antp »

Normally those used in AMC are quite standard.
If you combine the info provided in "Technical info for scripts" in the Help file and some basic guides for regular expressions, you should be able to get it working easily :)
fulvio53s03
Posts: 744
Joined: 2007-04-28 05:46:43
Location: Italy

Re: I need regular expression

Post by fulvio53s03 »

Do you think that this site and its page:
https://www.regular-expressions.info/examples.html
could be a good starting point?
:??: :grinking:
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: I need regular expression

Post by antp »

Probably, yes, I think I already passed by that one when searching specific info.
Otherwise what is often useful also is what you find by searching regex cheat sheet, you have a condensed version of all characters that can be used. But you need already a basic knowledge of how they work.
boristhecat
Posts: 68
Joined: 2015-06-30 22:25:21

Re: I need regular expression

Post by boristhecat »

I use a program called Renamer Lite, free from den4b.com
It utilises regex to batch rename files.
Fast and accurate and brilliant
fulvio53s03
Posts: 744
Joined: 2007-04-28 05:46:43
Location: Italy

Re: I need regular expression

Post by fulvio53s03 »

boristhecat wrote: 2024-03-25 17:46:26 I use a program called Renamer Lite, free from den4b.com
I don't need to rename files but to "change" strings (even field "File Path") inside a movie in AMc catalog.
To rename files there is also Ant Renamer.
Thanks anyway. :)
boristhecat
Posts: 68
Joined: 2015-06-30 22:25:21

Re: I need regular expression

Post by boristhecat »

Aha I misunderstood sorry :)
Post Reply