themaPoster
http://poster.themasoftware.com/forum/

Forum replacements problems.
http://poster.themasoftware.com/forum/viewtopic.php?f=4&t=634
Page 49 of 74

Author:  Crackpot [ July 29th, 2019, 9:40 am ]
Post subject:  Re: Forum replacements problems.

Code:
input:
https://rapidgator.net/file/0e21fdg11d741958d6df504a3/Pennyworth.S01E03.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.rar

output
Pennyworth.S01E03.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.rar


Code:
input:
https://rapidgator.net/file/0e21fdg11d741958d6df504a3/Pennyworth.S01E03.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.rar

output
http://localhost/Pennyworth.S01E03.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.rar


cannot use replace . only. coz it's inside post. [EP]whatever.text[/EP] want to remove dot inside [EP] tag
Code:
Input
[EP]The.Loudest.Voice.S01E05.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb | 2.40 GB[/EP]

output
[EP]The Loudest Voice S01E05 720p AMZN WEB-DL DDP5 1 H 264-NTb | 2 40 GB[/EP]

Author:  Freddy [ July 30th, 2019, 6:47 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
https?://rapidgator\.net/file/.+?/(.+)


Replace with:
Code:
$1


Enable regex search.

Search for:
Code:
https?://rapidgator\.net/file/.+?/(.+)


Replace with:
Code:
http://localhost/$1


Enable regex search.

Can't think anything for the last.

Author:  Crackpot [ July 30th, 2019, 9:46 am ]
Post subject:  Re: Forum replacements problems.

thanks :)

Author:  Crackpot [ August 3rd, 2019, 2:23 pm ]
Post subject:  Re: Forum replacements problems.

not sure if possible

Input
Code:
[b]The.Outpost.S02E04.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG | 1.25 GB[/b] https://rapidgator.net/file/92eb0badsc2884688a7e3a855df/The.Outpost.S02E04.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.rar


Output
Code:
[url=https://rapidgator.net/file/92eb0badsc2884688a7e3a855df/The.Outpost.S02E04.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.rar]The.Outpost.S02E04.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG | 1.25 GB[/url]

Author:  Freddy [ August 3rd, 2019, 5:28 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[b\](.+?)\[/b\]\s*(https?://rapidgator.+)


Replace with:
Code:
[url=$2]$1[/url]


Enable regex search.

Author:  vandt [ August 13th, 2019, 10:55 am ]
Post subject:  Re: Forum replacements problems.

how to choose a line and replace with that line+new text:
input:
Code:
sometext...thistext...sometext

output:
Code:
sometext...thistext...sometext_newtext


I know Find input by regex : .*thistext.* but don't know how to do: this line+_newtext

Author:  Freddy [ August 13th, 2019, 12:52 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
.*thistext.*


Replace with:
Code:
$0_newtext


Enable regex search.

Author:  Crackpot [ September 3rd, 2019, 9:45 pm ]
Post subject:  Re: Forum replacements problems.

input
Code:
Magnum.P.I.S01e01e02.1080P.Bluray.X264-Teneighty


output
Code:
Magnum.P.I.S01e01e02

Author:  Freddy [ September 4th, 2019, 5:16 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(?i)(.+S[0-9]+e[0-9]+e[0-9]+).+


Replace with:
Code:
$1


Enable regex search.

Author:  Crackpot [ September 8th, 2019, 3:42 pm ]
Post subject:  Re: Forum replacements problems.

input
Code:
[change][Erai-raws] Ensemble Stars! - 10 [720p][/change]
[change][HorribleSubs] Cardfight!! Vanguard - Zoku Koukousei-hen - 17 [720p][/change]


output
Code:
http://site/?s=Ensemble Stars!
http://site/?s=Cardfight!! Vanguard - Zoku Koukousei-hen


i use "<postSubject>" in themaposter to show the post subject

i added "[change]" so that TM will replace only if post subject showing inside "[change]post[/change]"

thanks in advanced :)

Author:  Freddy [ September 10th, 2019, 1:57 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[change\]\[.+?\]\s*(.+?) - [0-9]+.+?\[/change\]


Replace with:
Code:
http://site/?s=$1


Enable regex search.

Author:  ad-team [ September 11th, 2019, 7:42 pm ]
Post subject:  Re: Forum replacements problems.

Hi
input
Code:
Witnesses 2019 HDRip XviD AC3-EVO

output
Code:
Witnesses (2019)


input

Code:
Witnesses (2019) HDRip XviD AC3-EVO


output
Code:
Witnesses (2019)

thanks

Author:  Freddy [ September 12th, 2019, 3:08 pm ]
Post subject:  Re: Forum replacements problems.

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


Replace with:
Code:
$1 ($2)


Enable regex search.

Search for:
Code:
(.+?\([0-9]{4}\)).+


Replace with:
Code:
$1


Enable regex search.

Author:  Greenhorn [ September 18th, 2019, 9:59 pm ]
Post subject:  Re: Forum replacements problems.

Hello,
first of all let me thank you for the great product. I would like to ask for following regarding change of SUBJECT when posting.

i have capped subject character limit to 60 as most forums i use have this.
i am posting documentaries with this subject format eg :

Code:
Opuštěné stavební projekty / Abandoned Engineering (2016) / CZ


the output is this

Code:
Opuštěné stavební projekty / Abandoned Engineering (20...


However, i need to preserve the year and language mutation so this is wanted result

Code:
Opuštěné stavební projekty / Abandoned Engine... (2016) / CZ


Is this please possible to achieve ? Thank you very much

Author:  Freddy [ September 19th, 2019, 6:44 am ]
Post subject:  Re: Forum replacements problems.

Add this replacement in "CONFIG" -> "Replacements" -> "Subject" tab - if you want it to affect all forums.

Or in "FORUMS" -> select needed website -> "Replacements" -> "Subject" tab - if you want it to affect specific forums.

Search for:
Code:
^([^\n]{45}).+?(\([0-9]{4}\).+)$


Replace with:
Code:
$1... $2


Enable regex search.

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