It is currently March 28th, 2024, 10:22 pm



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 44, 45, 46, 47, 48, 49, 50 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2019, 6:10 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2019, 5:58 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 7th, 2019, 6:04 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
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]?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 7th, 2019, 7:44 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
\[coverx\].*?(https?://image\.tmdb.+?)\[/img\].*?\[/coverx\]


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


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 7th, 2019, 11:08 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
thanks a lot :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 17th, 2019, 4:20 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 17th, 2019, 5:16 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
(?s).+?(https?://(www\.)?imdb\.com/.+?/tt[0-9]+).+


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 7th, 2019, 9:53 am 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
Hi bro
need this regex in subject in general
example
Before:

Code:
Silverheart-2019-Destination

After :
Code:
Silverheart-Destination (2019)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 7th, 2019, 10:02 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
(.+?)-([0-9]{4})(.+)


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


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 7th, 2019, 11:15 am 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 8th, 2019, 5:30 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 8th, 2019, 1:52 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
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


Last edited by ad-team on May 11th, 2019, 2:01 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 11th, 2019, 1:22 am 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
any help for my request
thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 11th, 2019, 7:56 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 19th, 2019, 5:58 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 44, 45, 46, 47, 48, 49, 50 ... 74  Next

Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC