themaCreator http://creator.themasoftware.com/forum/ |
|
Replacements help. http://creator.themasoftware.com/forum/viewtopic.php?f=4&t=7222 |
Page 1 of 6 |
Author: | Shaki [ January 30th, 2022, 2:06 pm ] |
Post subject: | Replacements help. |
Hey Freddy I need a replacement i need to change the video time display now TC gives me this format and this is what it looks like in my post Quote: | 6h 42min 2s | | 6h 42min 22s | | 6h 3min 2s | | 12h 3min 21s | | 6min 42s | | 13min 2s | After Replacements Quote: | 6 h 42 min | | 6 h 42 min | | 6 h 3 min | | 12 h 3 min | | 6 min 42 s | | 13 min 2 s | maybe you can help me Freddy ? Take care |
Author: | Freddy [ January 30th, 2022, 2:28 pm ] |
Post subject: | Re: Replacements |
Search for: Code: ([0-9]+h [0-9]+min) [0-9]+s Replace with: Code: $1 Enable regex search. |
Author: | Shaki [ January 30th, 2022, 2:53 pm ] |
Post subject: | Re: Replacements help. |
Thank you very much Freddy and it is possible for a space to be before h min s Quote: 12 h 3 min
6 min 42 s 13 min 2 s |
Author: | Freddy [ January 30th, 2022, 3:11 pm ] |
Post subject: | Re: Replacements help. |
Are you sure that's needed? Just looks worse and harder to read. Never seen a space there. Most people will just complain to you. |
Author: | Shaki [ January 30th, 2022, 3:17 pm ] |
Post subject: | Re: Replacements help. |
I know it looks worse but yesterday the Moderator on Sanet pointed out that I should stick to the format of them and he sent me a photo on Sanet, all uploaders have the same format as films and series post https://sanet.st/movies/ |
Author: | Freddy [ January 30th, 2022, 3:22 pm ] |
Post subject: | Re: Replacements help. |
Add these two (make sure to add them after the replacement which I wrote above): Search for: Code: ([0-9]+)h ([0-9]+)min Replace with: Code: $1 h $2 min Enable regex search. Search for: Code: ([0-9]+)min ([0-9]+)s Replace with: Code: $1 min $2 s Enable regex search. |
Author: | Shaki [ January 30th, 2022, 3:31 pm ] |
Post subject: | Re: Replacements help. |
Thanks again a lot |
Author: | Shaki [ January 30th, 2022, 4:03 pm ] |
Post subject: | Re: Replacements help. |
these replacements work as there is one number at a time, e.g. Quote: 2h 3min 6min 4s and if there are two numbers, it cuts off and leaves one I mean how is the time so given Quote: 12h 32min
23min 43s |
Author: | Freddy [ January 30th, 2022, 4:18 pm ] |
Post subject: | Re: Replacements help. |
There was another mistake. The plus sign was in a wrong place. Updated the replacements above to correct ones. |
Author: | lyhonlam [ February 2nd, 2022, 3:48 am ] |
Post subject: | Re: Replacements help. |
Freddy wrote: There was another mistake. The plus sign was in a wrong place. Updated the replacements above to correct ones. I have a somewhat similar need with japanese date format: Before: 2021年02月02日 Replacement: 210202 (yy/mm/dd) Is it possible to replacement like this ? |
Author: | Freddy [ February 2nd, 2022, 6:55 am ] |
Post subject: | Re: Replacements help. |
Search for: Code: 20([0-9]{2}).([0-9]{2}).([0-9]{2}). Replace with: Code: $1$2$3 Enable regex search. |
Author: | lyhonlam [ February 2nd, 2022, 11:14 am ] |
Post subject: | Re: Replacements help. |
its perfect thank you so much |
Author: | geokasur [ March 19th, 2022, 9:09 am ] |
Post subject: | Replacement help me please |
220228 gunman (2020) ep02 (yahoo) how to remove second Angle brackets in subjects i want to remove (yahoo) from subject second Angle brackets with the help of regex 220228 gunman (2020) ep02 |
Author: | Shaki [ March 19th, 2022, 11:16 am ] |
Post subject: | Re: Replacement help me please |
removes everything after ep02 Search for: Code: ^(.+?ep[0-9]{2}).*$ Replace with: Code: $1 Enable regex search. if you had episode descriptions in the series in the series and seasons, then it is like that S01E01 Search for: Code: ^(.+?S[0-9]{2}E[0-9]{2}).*$ Replace with: Code: $1 Enable regex search. |
Author: | Freddy [ March 19th, 2022, 4:58 pm ] |
Post subject: | Re: Replacement help me please |
Or this would remove the second brackets (does not matter what comes before and it would keep text after the brackets if you would have any useful info there): Search for: Code: (.+?\(.+)\(.+?\)\s? Replace with: Code: $1 Enable regex search. |
Page 1 of 6 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |