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

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

Author:  Crackpot [ April 6th, 2019, 6:10 am ]
Post subject:  Re: Forum replacements problems.

input
<tags>thanks hope get it soon, this help in seo</tags>

output
<tags>thanks hope get it soon this help in seo</tags>

is it possible to remove comma from tags code? i want to use movie name only in tags but some movie has comma in title which i don't want

Author:  Freddy [ April 6th, 2019, 5:58 pm ]
Post subject:  Re: Forum replacements problems.

You could add replacement for tags in "Tags" tab (not "Message" tab) to remove first comma:

Search for:
Code:
(.+?),(.+)


Replace with:
Code:
$1 $2


Enable regex search.

Author:  Crackpot [ April 7th, 2019, 6:04 am ]
Post subject:  Re: Forum replacements problems.

thansk

Code:
input
[coverx][wp][img]https://image.tmdb.org/t/p/w300/hPuZR2bFoV0kuBrA98exWyvTf40.jpg[/img][/wp][wbb][img]https://i.postimg.cc/qJwtMSgB/Can-You-Ever-Forgive-Me-2018-1080p-Blu-Ray-X264-AMIABLE.jpg[/img][/wbb][/coverx]

output
[coverx]<a href="https://image.tmdb.org/t/p/w300/hPuZR2bFoV0kuBrA98exWyvTf40.jpg"><img src="https://image.tmdb.org/t/p/w300/hPuZR2bFoV0kuBrA98exWyvTf40.jpg"/></a>[/coverx]


please note: tmdb link is appear on other part of post which i don't want to change. is it possible to make change only if there is [coverx]?

Author:  Freddy [ April 7th, 2019, 7:44 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[coverx\].*?(https?://image\.tmdb.+?)\[/img\].*?\[/coverx\]


Replace with:
Code:
[coverx]<a href="$1"><img src="$1" /></a>[/coverx]


Enable regex search.

Author:  Crackpot [ April 7th, 2019, 11:08 pm ]
Post subject:  Re: Forum replacements problems.

thanks a lot :)

Author:  Crackpot [ April 17th, 2019, 4:20 pm ]
Post subject:  Re: Forum replacements problems.

i want to change my post template. basically all text has imdb link. example

Code:
cover
synposis
[b]iMDB iNFO[/b]
[code]Movie Name:.....Ghost Stories (2017)
iMDB Link:.........https://www.imdb.com/title/tt5516328/
Cast:..................Andy Nyman, Martin Freeman, Paul Whitehouse, Alex Lawther
Director:.............Jeremy Dyson, Andy Nyman
Writer:.................Jeremy Dyson, Andy Nyman, Jeremy Dyson (stage play), Andy Nyman (stage play)
Genre:.................Drama, Horror
iMDB Rating:........6.4/10 (21,579 Votes)
[/code]
dl link
adasd
asd
as
da
sd


i just want to keep only imdb link and remove all text. possible?

Author:  Freddy [ April 17th, 2019, 5:16 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(?s).+?(https?://(www\.)?imdb\.com/.+?/tt[0-9]+).+


Replace with:
Code:
$1


Enable regex search.

Author:  ad-team [ May 7th, 2019, 9:53 am ]
Post subject:  Re: Forum replacements problems.

Hi bro
need this regex in subject in general
example
Before:

Code:
Silverheart-2019-Destination

After :
Code:
Silverheart-Destination (2019)

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

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


Replace with:
Code:
$1 $3 ($2)


Enable regex search.

Author:  ad-team [ May 7th, 2019, 11:15 am ]
Post subject:  Re: Forum replacements problems.

thanks bro

before
Code:
[William A Sollecito; Julie K Johnson] McLaughlin


after

Code:
McLaughlin [William A Sollecito; Julie K Johnson]


and this
before
Code:
(2019) Ioanna Gika - Thalassa


after

Code:
Ioanna Gika - Thalassa  (2019)

Author:  Freddy [ May 8th, 2019, 5:30 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
^(\[.+?\])(.+)


Replace with:
Code:
$2 $1


Enable regex search.


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


Replace with:
Code:
$2 $1


Enable regex search.

Author:  ad-team [ May 8th, 2019, 1:52 pm ]
Post subject:  Re: Forum replacements problems.

Hi bro
before
Code:
Hardline - 2019 - Life


After
Code:
Hardline - Life (2019)


in before there is space between dash and number

also
before:
Code:
Ann Winsborn - Everything I Am - 2004



after:
Code:
Ann Winsborn - Everything I Am - (2004)

also
before
:
Code:
https://img164.imagetwist.com/i/29522/o6g0fp4yxer3.jpg

after :

Code:
https://img164.imagetwist.com/th/29522/o6g0fp4yxer3.jpg
thanks

Author:  ad-team [ May 11th, 2019, 1:22 am ]
Post subject:  Re: Forum replacements problems.

any help for my request
thanks

Author:  Freddy [ May 11th, 2019, 7:56 am ]
Post subject:  Re: Forum replacements problems.

Was just away at countryside for few days.

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


Replace with:
Code:
$2 ($1)


Enable regex search.


Search for:
Code:
([0-9]{4})$


Replace with:
Code:
($1)


Enable regex search.


Search for:
Code:
imagetwist.com/i/


Replace with:
Code:
imagetwist.com/th/


Simple replacement (NOT regex).

Author:  Crackpot [ May 19th, 2019, 5:58 am ]
Post subject:  Re: Forum replacements problems.

Input
The.X-Files.S01e01.1080P.Bluray.X264-Rovers-1
The.X-Files.S01e02.1080P.Bluray.X264-Rovers-2
The.X-Files.S01e03.1080P.Bluray.X264-Rovers-3
The.X-Files.S02e25.Repack.1080P.Bluray.X264-Rovers-4
The.X-Files.S09e19E20.1080P.Bluray.X264-Rovers-5

Output
The.X-Files.S01e01.1080P.Bluray.X264-Rovers
The.X-Files.S01e02.1080P.Bluray.X264-Rovers
The.X-Files.S01e03.1080P.Bluray.X264-Rovers
The.X-Files.S02e25.Repack.1080P.Bluray.X264-Rovers
The.X-Files.S09e19E20.1080P.Bluray.X264-Rovers

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