It is currently March 29th, 2024, 2:20 pm



Post new topic Reply to topic  [ 76 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Replacements help.
PostPosted: January 30th, 2022, 2:06 pm 

Joined: January 13th, 2014, 7:59 pm
Posts: 141
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements
PostPosted: January 30th, 2022, 2:28 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
([0-9]+h [0-9]+min) [0-9]+s


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 30th, 2022, 2:53 pm 

Joined: January 13th, 2014, 7:59 pm
Posts: 141
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 30th, 2022, 3:11 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 30th, 2022, 3:17 pm 

Joined: January 13th, 2014, 7:59 pm
Posts: 141
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/


Last edited by Shaki on January 30th, 2022, 3:32 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 30th, 2022, 3:22 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 30th, 2022, 3:31 pm 

Joined: January 13th, 2014, 7:59 pm
Posts: 141
Thanks again a lot


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 30th, 2022, 4:03 pm 

Joined: January 13th, 2014, 7:59 pm
Posts: 141
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 30th, 2022, 4:18 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
There was another mistake. The plus sign was in a wrong place.

Updated the replacements above to correct ones.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: February 2nd, 2022, 3:48 am 

Joined: April 1st, 2014, 3:11 pm
Posts: 27
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 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: February 2nd, 2022, 6:55 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
20([0-9]{2}).([0-9]{2}).([0-9]{2}).


Replace with:
Code:
$1$2$3


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: February 2nd, 2022, 11:14 am 

Joined: April 1st, 2014, 3:11 pm
Posts: 27
its perfect thank you so much :)


Top
 Profile  
Reply with quote  
 Post subject: Replacement help me please
PostPosted: March 19th, 2022, 9:09 am 

Joined: May 23rd, 2011, 10:53 pm
Posts: 15
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacement help me please
PostPosted: March 19th, 2022, 11:16 am 

Joined: January 13th, 2014, 7:59 pm
Posts: 141
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacement help me please
PostPosted: March 19th, 2022, 4:58 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 76 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC