themaCreator
http://creator.themasoftware.com/forum/

Change Date Format In Final Post.
http://creator.themasoftware.com/forum/viewtopic.php?f=4&t=7004
Page 1 of 1

Author:  Pablo01 [ November 29th, 2020, 8:36 pm ]
Post subject:  Change Date Format In Final Post.

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

Author:  Freddy [ November 30th, 2020, 8:14 am ]
Post subject:  Re: Change Date Format In Final Post

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


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


Enable regex search.

Author:  Pablo01 [ December 12th, 2020, 3:27 pm ]
Post subject:  Re: Change Date Format In Final Post.

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?

Author:  Freddy [ December 13th, 2020, 9:31 am ]
Post subject:  Re: Change Date Format In Final Post.

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.

Author:  Pablo01 [ December 21st, 2020, 9:29 pm ]
Post subject:  Re: Change Date Format In Final Post.

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

Author:  Freddy [ December 22nd, 2020, 9:25 am ]
Post subject:  Re: Change Date Format In Final Post.

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/