It is currently March 29th, 2024, 7:40 am



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Remove URL, but not the anchor text.
PostPosted: February 8th, 2020, 5:26 am 

Joined: December 2nd, 2013, 9:36 pm
Posts: 55
sorry. im using the old version which is working for me. hope i can still get help.

how to keep the anchor text when the url are removed?

example:

from

Anchor Text

to

Anchor Text


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove URL, but not the anchor text.
PostPosted: February 8th, 2020, 7:41 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
You can do that with replacement.

Search for:
Code:
\[url=https?://leecher\.themasoftware\.com.*?\](.+?)\[/url\]


Replace with:
Code:
$1


Enable regex search.

Enable to apply to all new leeched messages or assign it to needed websites.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove URL, but not the anchor text.
PostPosted: February 8th, 2020, 8:16 am 

Joined: December 2nd, 2013, 9:36 pm
Posts: 55
thanks Freddy works fine but do not deleted inks with a redirect url.

example.com its removed
example.com/linkfilter/?url=http://randomsite.com its not deleted. not even rge example.com part.


Btw. (im returning to use this soft) if theres two divs with the same id but diferent content.

div.name
data 1

div.name
data 2

how you do to select the first o the second?

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove URL, but not the anchor text.
PostPosted: February 8th, 2020, 8:59 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
I need full before and after example (not just small part, write inside "code" tags, copy "before" from your message text) and copy the replacement which you added, sounds like you added wrong replacement since it should work fine.

For the selectors I would need URL to take a look.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove URL, but not the anchor text.
PostPosted: February 8th, 2020, 9:27 am 

Joined: December 2nd, 2013, 9:36 pm
Posts: 55
Freddy wrote:
I need full before and after example (not just small part, write inside "code" tags, copy "before" from your message text) and copy the replacement which you added, sounds like you added wrong replacement since it should work fine.

For the selectors I would need URL to take a look.


yes youre right the problem was a \ sinces not subdomain. isnt there a way to remove any domain url?

the other matter already soved with adding the a.linkbar to removed elements.

thank you


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove URL, but not the anchor text.
PostPosted: February 8th, 2020, 9:31 am 
Site Admin
User avatar

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


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove URL, but not the anchor text.
PostPosted: February 9th, 2020, 3:30 am 

Joined: December 2nd, 2013, 9:36 pm
Posts: 55
Freddy wrote:
Search for:
Code:
\[url=https?://.+?\](.+?)\[/url\]


Replace with:
Code:
$1


Enable regex search.



many thanks. i almost finish my project just need to know how to remove all the images from leech, using replacement?


thanks again


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove URL, but not the anchor text.
PostPosted: February 9th, 2020, 8:58 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
\[img\].+?\[/img\]


Replace with:
Code:
(leave empty)


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  [ 8 posts ] 

Who is online

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