It is currently March 28th, 2024, 11:39 am



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Change Date Format In Final Post.
PostPosted: November 29th, 2020, 8:36 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
Hi.

Is it possible - maybe via replacements - to change the date format in a post/subject.

Now I have my files labelled YYYY.MM.DD but i want to end up with MM/DD/YY

2020.11.29 must change to 11/29/20


Top
 Profile  
Reply with quote  
 Post subject: Re: Change Date Format In Final Post
PostPosted: November 30th, 2020, 8:14 am 
Site Admin
User avatar

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


Replace with:
Code:
$3/$4/$2


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Change Date Format In Final Post.
PostPosted: December 12th, 2020, 3:27 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
Thanks Freddy.

It works - but since it also changes the date in the filename to include / instead of . in the date the links in TC dont work.

Is there a way to only use this replacement in the SUBJECT + 1st Line of the Post?


Top
 Profile  
Reply with quote  
 Post subject: Re: Change Date Format In Final Post.
PostPosted: December 13th, 2020, 9:31 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Add this replacement for subject (under "Subject" tab) and message (under "Message" tab):

Search for:
Code:
^(.*?)([0-9]{2})([0-9]{2})\.([0-9]{2})\.([0-9]{2})


Replace with:
Code:
$1$4/$5/$3


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Change Date Format In Final Post.
PostPosted: December 21st, 2020, 9:29 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
Thanks now it works as intended.

is there any way to change the links of the 100´s of posts that now have mm/dd/yyy in filename - that dont work when clicking the link.
Code:
https://k2s.cc/file/11a1a886e856b/blablabla_03/08/20_24893565_1.mp4
https://fboom.me/file/11a1a886e856b/blab_03/08/20_24893565_1_toy.mp4

must be:

Code:
https://k2s.cc/file/11a1a886e856b/blablabla_03.08.20_24893565_1.mp4
https://fboom.me/file/11a1a886e856b/blab_03.08.20_24893565_1_toy.mp4


Top
 Profile  
Reply with quote  
 Post subject: Re: Change Date Format In Final Post.
PostPosted: December 22nd, 2020, 9:25 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Search for:
Code:
(https?://(k2s|fboom).+?/.+?/.+?)([0-9]{2})/([0-9]{2})/([0-9]{2})


Replace with:
Code:
$1$3.$4.$5


Enable regex search.

You can save all posts to single .txt file and use Notepad++ to apply the replacement. Later load them back if needed.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 9 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