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



Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Replacement help me please
PostPosted: March 20th, 2022, 4:17 am 

Joined: May 23rd, 2011, 10:53 pm
Posts: 15
Freddy wrote:
Or this would remove the second brackets (does not matter what comes before and it would keep text after the brackets if you would have any useful info there):

Search for:
Code:
(.+?\(.+)\(.+?\)\s?


Replace with:
Code:
$1


Enable regex search.


its work for me thank your very much


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: April 12th, 2022, 3:49 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
input
Code:
[img]https://image.tmdb.org/t/p/w300/c5gkRTLbQnA9M2li2hDmXRfZ0g3.jpg
https://image.tmdb.org/t/p/w300/c5gkRTLbQnA9M2li2hDmXRfZ0g3.jpg[/img]


output
Code:
[img]https://image.tmdb.org/t/p/w300/c5gkRTLbQnA9M2li2hDmXRfZ0g3.jpg[/img]


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: April 12th, 2022, 6:07 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Why do you have two links? It would be easier just to remove one from the template.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: April 13th, 2022, 3:39 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
i using two image host for a selected section. so it add two image link. like one image host for one site and another one is other site. or may be can do this replacement?

input
Code:
[img]line1
line2[/img]


output
Code:
[img]line1[/img]


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: April 13th, 2022, 5:13 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
You have a mistake in your template. Looks like you added "img" tag in wrong place (it should be added inside cover / preview template [not in "Main"]).

Make it like this:
Code:
[img]host1[/img]
[img]host2[/img]


Then for needed forum just add one host as banned host and it will remove it automatically.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: April 14th, 2022, 1:21 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
my bad, problem solved!


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: May 22nd, 2022, 12:07 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
Hi,
I am looking for a way to strip some text in my subject.

2 examples:
Text here - more text here [HD/720p/1.77 GB] text here again
Text here - more text here [HD/1080p/4.17 GB]

I want to strip everything after [ but the [ must also be deleted from the subject.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: May 22nd, 2022, 3:45 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
\[.+?\]\s?(.*)


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: July 21st, 2022, 1:12 am 

Joined: May 23rd, 2011, 10:53 pm
Posts: 15
Filename Replacement help

220720 Kaisi Teri Khudgharzi ep11
220720 Kaisi Teri Khudgharzi ep11 (Dure Fishan, Danish Taimoor)
220720 Kaisi Teri Khudgharzi (Dure Fishan, Danish Taimoor)

i want to replace the file name

220720.Kaisi.S01E11
220720.Kaisi.S01E11
220720.Kaisi.Teri

220720 Kaisi Teri Khudgharzi ep11 : 220720.Kaisi.S01E11
220720 Kaisi Teri Khudgharzi ep11 (Dure Fishan, Danish Taimoor) : 220720.Kaisi.S01E11
220720 Kaisi Teri Khudgharzi (Dure Fishan, Danish Taimoor) : 220720.Kaisi.Teri
thanks in advance


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: July 22nd, 2022, 4:44 am 
Site Admin
User avatar

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


Replace with:
Code:
$1 S01E$2


Enable regex search.

Search for:
Code:
([0-9]+.+?)Khudgharzi.+


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: October 7th, 2022, 7:57 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
Before
Code:
Monster High The Movie 2022 1080p WEBRip x265-RARBG

After
Code:
Monster High The Movie (2022)

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: October 8th, 2022, 7:22 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($2)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: December 25th, 2022, 5:14 pm 

Joined: May 23rd, 2011, 10:53 pm
Posts: 15
how to add if missing the closing parenthesis
220720 Kaisi Teri Khudgharzi (Dure Fishan, Danish Taimoor


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: December 26th, 2022, 11:16 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
.+?\((?!.*\)).+


Replace with:
Code:
$0)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: December 26th, 2022, 8:15 pm 

Joined: May 23rd, 2011, 10:53 pm
Posts: 15
many thanks its work for me


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: No registered users and 9 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