themaCreator http://creator.themasoftware.com/forum/ |
|
Replacements help. http://creator.themasoftware.com/forum/viewtopic.php?f=4&t=7222 |
Page 3 of 6 |
Author: | psychopanda [ January 9th, 2023, 12:53 pm ] |
Post subject: | Remove characters between [] in title. |
Hi I have some files with [xyz] in foldertitle, do you have some ideas how i can remove them from subject by posting? exemples: .....1970.1080p.BluRay.x264-GAZER.[CcYMsRffL6] .....2022.1080p.WEBRip.x264.AAC-AOC.[lv0zPqmiTy] |
Author: | Freddy [ January 9th, 2023, 2:43 pm ] |
Post subject: | Re: remove characters between [] in title |
Hi, just add a replacement under "Subject" tab: Search for: Code: \[.+?\] Replace with: Code: (leave empty) Enable regex search. |
Author: | Daemon [ January 27th, 2023, 10:48 am ] |
Post subject: | Re: Replacements help. |
Hi Freddy! Please help with tags replacement. Input Code: <tags>{#fileName#}, {#source-javlibrary-maker#}, </tags> File names may be vary: THTP-0810 ID-03 BAB-082 I have tags like this now: <tags>THTP, 0810, Some maker, </tags> <tags>ID, 03, Some maker, </tags> <tags>BAB, 082, Some maker, </tags> Output Code: <tags>THTP, Some maker, </tags> <tags>ID, Some maker, </tags> <tags>BAB, Some maker, </tags> Need to remove tag with numbers. |
Author: | Freddy [ January 27th, 2023, 1:41 pm ] |
Post subject: | Re: Replacements help. |
Add this replacement under "Tags" tab: Search for: Code: [0-9]+\s*, Replace with: Code: (leave empty) Enable regex search. |
Author: | Daemon [ January 27th, 2023, 4:30 pm ] |
Post subject: | Re: Replacements help. |
With your code I got Code: <tags>THTP- Some maker </tags> <tags>ID- Some maker </tags> <tags>BAB- Some maker </tags> Had to add another replacements Search for: Code: - Replace with: Code: , and regex Search for: Code: $ Replace with: Code: , Perhaps this can be combined into one expression? Sorry I'm a noob in regex. |
Author: | Freddy [ January 27th, 2023, 5:32 pm ] |
Post subject: | Re: Replacements help. |
Both are fine, but there is no need for comma at the end. It will be automatically removed anyway later. |
Author: | Daemon [ January 27th, 2023, 5:43 pm ] |
Post subject: | Re: Replacements help. |
Freddy wrote: Both are fine, but there is no need for comma at the end. It will be automatically removed anyway later. I manually add more tags later, the comma at the end saves two keystrokes for me Thank you! |
Author: | Pablo01 [ May 14th, 2023, 5:08 pm ] |
Post subject: | Re: Replacements help. |
I struggle with regex to work out how to rename files. For example: Code: lilydaisyphillips-31-12-2022-2726567804-HAPPY NEW YEARs EVE.jpg I want it to be: Code: lilydaisyphillips - 2022.12.31 2726567804-HAPPY NEW YEARs EVE.jpg how can I fix that no matter what the first part is - most important is the re-placing of the numbers in the date. |
Author: | Freddy [ May 14th, 2023, 8:43 pm ] |
Post subject: | Re: Replacements help. |
Search for: Code: (.+?).([0-9]{2}).([0-9]{2}).([0-9]{4}). Replace with (there is a space at the end): Code: $1 - $4.$3.$2 Enable regex search. |
Author: | ad-team [ June 18th, 2023, 9:21 am ] |
Post subject: | Re: Replacements help. |
Beforr Code: [leech=https://rapidgator.net/file/6e19e0c5e5173b462246d419f326dd84/Kingdom.of.Wreck.Business.FitGirl.Repack.part1.rar]Kingdom of Wreck Business [FitGirl Repack].part1.rar[/leech] After Code: Kingdom of Wreck Business [FitGirl Repack].part1.rar
[code] https://rapidgator.net/file/6e19e0c5e5173b462246d419f326dd84/Kingdom.of.Wreck.Business.FitGirl.Repack.part1.rar[/code] |
Author: | Freddy [ June 18th, 2023, 2:57 pm ] |
Post subject: | Re: Replacements help. |
Search for: Code: \[leech=(.+?)\](.+?)\[/leech\] Replace with: Code: $2\n[code]$1[/code] Enable regex search. |
Author: | hayowae [ August 19th, 2023, 4:21 am ] |
Post subject: | Re: Replacements help. |
replace filename with foldername |
Author: | Freddy [ August 19th, 2023, 6:53 am ] |
Post subject: | Re: Replacements help. |
If you mean in subject then just add this line in "Main" template: Code: <subject>{#folderName#}</subject>
|
Author: | hayowae [ August 19th, 2023, 11:53 pm ] |
Post subject: | Re: Replacements help. |
i mean in filehost title for example: foldername: abc filename: xyz result: k2s.cc/file/xxxxx/abc |
Author: | Freddy [ August 20th, 2023, 7:36 pm ] |
Post subject: | Re: Replacements help. |
In "TEMPLATES" -> select needed post type -> {#fileUploadName#} tab sub-template (the last tab). Set to: Code: {#folderName#}
|
Page 3 of 6 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |