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

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

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

Thank you !!! It works great : )
1 more option please ? this may be impossible

Subject
Input:
Code:
Vyhrané a prohrané bitvy 2. světové váky / Battles won and lost (2017) / CZ


preserve year (2017) but strip / CZ - 60 character limits on

output :
Code:
Vyhrané a prohrané bitvy 2. světové váky / Battles... (2017)

Author:  Freddy [ September 19th, 2019, 2:25 pm ]
Post subject:  Re: Forum replacements problems.

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


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


Enable regex search.

Author:  Greenhorn [ September 22nd, 2019, 10:19 am ]
Post subject:  Re: Forum replacements problems.

Freddy wrote:
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





it works great except when subject is between 56-60 characters long
Then it always crops and adds ...

eg. Operace: Záchrana žraloků / Operation: Sharklift (2019) / CZ - 60 characters
output is :
Code:
Operace: Záchrana žraloků / Operation: Sharkl... (2019) / CZ

Author:  Freddy [ September 22nd, 2019, 4:37 pm ]
Post subject:  Re: Forum replacements problems.

This should be better (update, don't add a second):

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


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


Enable regex search.

Author:  Greenhorn [ September 23rd, 2019, 10:57 am ]
Post subject:  Re: Forum replacements problems.

AWESOME !!! working great. thank you

Author:  Crackpot [ September 25th, 2019, 9:13 am ]
Post subject:  Re: Forum replacements problems.

Code:
input
https://abc.com/RNKykvg/foxy-brown-1974-1080p-bluray-x264-7sins-mkv

output
https://abc.com/kvg/Foxy.Brown.1974.1080p.BluRay.x264-7SinS.mkv

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

You could make RNKykvg to kvg like this:

Search for:
Code:
(https?://abc\.com/).+?([^\n]{3}/)


Replace with:
Code:
$1$2


Enable regex search.

The Capitalize and dots would only be possible if you use themaCreator to upload. There are an options to replace dashes to spaces, capitalize filenames and replace spaces to dots.

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

Hi

input
Code:
PervsOnPatrol 19 09 27 Lexi Lore Spy Cam Studying

output

Code:
PervsOnPatrol Lexi Lore Spy Cam Studying


this replace in subject need without number in titles

thanks

Author:  stefan-te [ September 29th, 2019, 1:16 am ]
Post subject:  Re: Forum replacements problems.

You can use this to remove just the numbers...
Code:
([0-9]{2}).([0-9]{2}).([0-9]{2}).

Replace with nothing
Enable regex.

Image

Maybe Freddy has a better regex xD

Author:  Freddy [ September 29th, 2019, 7:47 am ]
Post subject:  Re: Forum replacements problems.

That would work. Just no need for groups:

Code:
[0-9]{2}.[0-9]{2}.[0-9]{2}.

Author:  Crackpot [ October 10th, 2019, 2:26 am ]
Post subject:  Re: Forum replacements problems.

not sure if possible. please check
Quote:
[info]text
a
asd
[/info]

[des]test[/des]


output
Quote:
[des]test[/des]

[info]text
a
asd
[/info]

Author:  Freddy [ October 10th, 2019, 7:51 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(?s)(\[info\].+?\[/info\])(\s*)(\[des\].+?\[/des\])


Replace with:
Code:
$3$2$1


Enable regex search.

Author:  Crackpot [ October 19th, 2019, 10:08 am ]
Post subject:  Re: Forum replacements problems.

nvm...i got another way

Author:  zaika [ October 19th, 2019, 2:32 pm ]
Post subject:  Re: Forum replacements problems.

Code:
https://www.keeplinks.org/p45/5da008c6f393d
ts possible this freddy

Input
Code:
[code]https://www.keeplinks.org/p45/3435da008c6f393d[/code]


Output
Code:
[b]Easybytez - Nitroflare[/b]
[url]https://www.keeplinks.org/p45/3435da008c6f393d[/url]

Author:  stefan-te [ October 19th, 2019, 11:03 pm ]
Post subject:  Re: Forum replacements problems.

^try this :D
Search for
Code:
\[code\](https:\/\/www.keeplinks.org.+)\[\/code\]


replace with
Code:
[b]Easybytez - Nitroflare[/b]\n[url]$1[/url]


results:
Image

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