It is currently April 16th, 2024, 7:46 am



Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Removing only uploaded.net links with code surrounding them.
PostPosted: September 28th, 2022, 3:04 pm 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
How to remove links only from uploaded but also with code that surrounds them? For now, I go to post and extract links then on the right from uploaded links I write r, the links are gone but code tag that was surrounding them is still there. Any possibility to delete it as well? Other links like rg or ddownload I want to stay, so I don't want to delete all links in post.


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 28th, 2022, 3:21 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12639
Location: Earth
You can do it better, but I would need specific examples of what code you have around them and what's left after that regular removal. Make sure the examples are 100% the same as you have in posts (with all new lines).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 28th, 2022, 4:16 pm 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
For example, there is something like this:

Code:
<p>
    
</p>

<pre class="ipsCode">
<span><a href="https://ddownload.com/3zkcwexronm0/Age.of.Empires.II.Definitive.Edition.Dawn.of.the.Dukes.Update.Build.56005-CODEX.rar" rel="external nofollow">https://ddownload.com/3zkcwexronm0/Age.of.Empires.II.Definitive.Edition.Dawn.of.the.Dukes.Update.Build.56005-CODEX.rar</a>
</span></pre>

<p>
    
</p>

<pre class="ipsCode">
<span><a href="http://uploaded.net/file/d2ra09c0/Age.of.Empires.II.Definitive.Edition.Dawn.of.the.Dukes.Update.Build.56005-CODEX.rar" rel="external nofollow">http://uploaded.net/file/d2ra09c0/Age.of.Empires.II.Definitive.Edition.Dawn.of.the.Dukes.Update.Build.56005-CODEX.rar</a>
</span></pre>

<p>
    
</p>

<pre class="ipsCode">
<span><a href="https://clicknupload.to/z1hvsxug8kxn" rel="external nofollow">https://clicknupload.to/z1hvsxug8kxn</a>
</span></pre>

<p>
    
</p>


After removing uploaded links with method described above, the code tag is left there.


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 28th, 2022, 5:49 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12639
Location: Earth
Add this replacement for that site (this will basically remove the empty code tags after link is removed):

Search for:
Code:
<pre class=\"ipsCode\">\s*</span></pre>\s*<p>\s*</p>\s?


Replace with:
Code:
(leave empty)


Enable regex search.

Fully tested. It will be fine then.

For faster removing you can temporary disable all other hosts expect uploaded.net -> then only uploaded.net links will be extracted and you can enable in that window option "Remove all links" (you won't need to enter "r" manually then) -> press "Replace links".

uploaded.net links will be removed (as you did before) + the replacement will remove the empty tags (the replacement only removes empty tags, nothing more, if there are no empty tags it won't affect anything).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 28th, 2022, 8:54 pm 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
Wow, many thanks for that, helps a lot.


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 29th, 2022, 9:58 pm 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
Does not seem to work, checked it on post also and code tags still there:

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 29th, 2022, 10:08 pm 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
Now I see, my mistake, On screen got <span>, that why he did not delete, and sometimes I see there is no <p></p>, so I deleted it.

Would the formula like this be good?

Code:
<pre class=\"ipsCode\">\s*</span></pre>\s*


Or this better?
Code:
<pre class=\"ipsCode\">\s*</span></pre>\s?


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 30th, 2022, 6:30 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12639
Location: Earth
Your testing example is wrong. You have two ending "</span>" tags. When themaManager is removing the link first </span> tag will be removed together with the link.

You probably just removed the <a> tag by hand (this is not how it looks in the forum).

If 100% sure that it's from the forum (not by hand), then that regex won't work at all, you need to add the second </span> tag there for it to work.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: September 30th, 2022, 7:10 pm 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
Yes, I changed a little the formula, because in different post the wrong combination looks different.

Code:
<pre class=\"ipsCode\">\s*</pre>\s*


I made such formula for now, and it helped, seems to work ok.


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: October 2nd, 2022, 5:07 am 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
How to match this?

Code:
<p>
    
</p>

<p>
    
</p>

<p>
    
</p>

<p>
    
</p>



From this sample:
Code:
<br/>
   <span style="color:#FF9900;"><strong><span style="font-size:14px;">Download:</span></strong></span>
</p>

<p>
    
</p>

<p>
    
</p>

<p>
    
</p>

<p>
    
</p>

<pre class="ipsCode">


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: October 2nd, 2022, 6:19 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12639
Location: Earth
Pretty much the same as in previous replacement.

Search for:
Code:
<p>\s*</p>\s*<p>\s*</p>\s*<p>\s*</p>\s*<p>\s*</p>\s*


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: October 2nd, 2022, 8:46 pm 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
I tried that already, but does not work:

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: October 3rd, 2022, 5:19 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12639
Location: Earth
Your examples above and in your screenshot are different. Above you had four pairs of empty <p> tags. In the screenshot you have only three.

Just remove one pair from the replacement:

Search for:
Code:
<p>\s*</p>\s*<p>\s*</p>\s*<p>\s*</p>\s*


Replace with:
Code:
(leave empty)


Enable regex search.

You can add both replacements for both cases.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: October 3rd, 2022, 6:40 am 

Joined: December 16th, 2019, 7:54 pm
Posts: 63
Yes I know, but I checked different combinations already, even with 2 <p> tags, and it does not remove them, I don't know why.

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Removing only uploaded.net links with code surrounding t
PostPosted: October 3rd, 2022, 7:37 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12639
Location: Earth
You probably have a space at the end in replacement or the text which you pasted there has some invisible characters.

Tested again. It works fine.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

Who is online

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