It is currently October 5th, 2022, 9:41 pm



Post new topic Reply to topic  [ 1040 posts ]  Go to page Previous  1 ... 65, 66, 67, 68, 69, 70  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: January 29th, 2022, 4:18 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
input
Code:
[imdb=tt13309978]

[b]Download From RapidGator[/b]

[code]
https://rapidgator.net/file/ffsddasd2.0.x264-EVO.rar
[/code]



remove everything and keep only the imdb bbcode:
Code:
[imdb=tt13309978]


Last edited by Crackpot on January 29th, 2022, 12:40 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: January 29th, 2022, 7:51 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11923
Location: Earth
You example seems incomplete, the closing "hide" tag is missing. If you only remove the opening "hide" the BBCode will be invalid and might cause issues.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: January 29th, 2022, 12:43 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
modified the previous post. there could be other text content.

i can use multiple text replace. but will it be possible to remove everything from the text file only keep the text pattern `[imdb=tt13309978]` with using only single regex replacement?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: January 29th, 2022, 7:48 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11923
Location: Earth
Search for:
Code:
(?s)(\[imdb=tt.+?\]).+rapidgator\.net.+?\[/code\]


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 16th, 2022, 4:47 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
will it be possible to make this replacement?

Input
Code:
[b]Download From RapidGator[/b]
[code]https://www.keeplinks.org/p35/620c744507504[/code]

[b]Download From UptoBox[/b]
[code]https://www.keeplinks.org/p35/620c7443d5469[/code]



Output
Code:
<a href="https://www.keeplinks.org/p35/620c744507504">Rapidgator</a>

<a href="https://www.keeplinks.org/p35/620c744507504">UptoBox</a>


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 16th, 2022, 7:50 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11923
Location: Earth
Search for:
Code:
\[b\]Download From (.+?)\[/b\]\s*\[code\](.+?)\[/code\]


Replace with:
Code:
<a href="$2">$1</a>


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 16th, 2022, 9:18 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
thank you


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 16th, 2022, 10:50 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
input
Code:
first site post content
[SECOND_SITE_POST]
second site post content





remove all content from starting [SECOND_SITE_POST] to end
output 1
Code:
first site post content



remove all content before starting to till [SECOND_SITE_POST]
output 2
Code:
second site post content


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 17th, 2022, 7:18 am 
Site Admin
User avatar

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


Replace with:
Code:
$1


Enable regex search.


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


Replace with:
Code:
$2


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 18th, 2022, 1:44 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
input
Code:
<td><p style="text-align: center">[RG][/RG]


[MULTI][/MULTI]


</td>


output
Code:
<td><p style="text-align: center">[RG][/RG][MULTI][/MULTI]</td>

i could use \n\n but there is multiple whitespace


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 18th, 2022, 10:55 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11923
Location: Earth
Search for:
Code:
(\[/RG\])\s*(\[MULTI\]\[/MULTI\])\s*


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: February 26th, 2022, 1:23 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
input
Code:
[RG]https://www.keeplinks.org/p35/661122237f4bb[/RG]

[MULTI]https://www.keeplinks.org/p35/62161227de9d98[/MULTI]

<br />Pass:xasd


output
Code:
[RG]https://www.keeplinks.org/p35/661122237f4bb[/RG][MULTI]https://www.keeplinks.org/p35/62161227de9d98[/MULTI]<br />Pass:xasd


i could use \n\n but what if there is multiple blank line? possible to use regex?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 26th, 2022, 7:10 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11923
Location: Earth
If you want to remove all new lines then just replace "\n" with nothing (all new lines will be removed, the result will be as you want).

Search for:
Code:
\n


Replace with:
Code:
(leave empty)


Simple replacement (not regex).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: March 8th, 2022, 3:29 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 564
sorry i asked you something similar but i could not able to fig it out how can i do that


input
Code:
first site post content
[SECOND_SITE_POST]
second site post content
[THRID_SITE_POST]
third site post content


output 1
Code:
first site post content


output 2
Code:
second site post content


output 3
Code:
third site post content


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: March 8th, 2022, 8:11 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11923
Location: Earth
For first:

Search for:
Code:
(?s)(.+?)\[SECOND_SITE_POST\].*


Replace with:
Code:
$1


Enable regex search.

For second:

Search for:
Code:
(?s).*\[SECOND_SITE_POST\](.+?)\[THRID_SITE_POST\].*


Replace with:
Code:
$1


Enable regex search.

For third:

Search for:
Code:
(?s).*\[THRID_SITE_POST\](.+)


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1040 posts ]  Go to page Previous  1 ... 65, 66, 67, 68, 69, 70  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