themaLeecher
http://leecher.themasoftware.com/forum/

Remove URL, but not the anchor text.
http://leecher.themasoftware.com/forum/viewtopic.php?f=18&t=6527
Page 1 of 1

Author:  flaiho [ February 8th, 2020, 5:26 am ]
Post subject:  Remove URL, but not the anchor text.

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

Author:  Freddy [ February 8th, 2020, 7:41 am ]
Post subject:  Re: Remove URL, but not the anchor text.

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.

Author:  flaiho [ February 8th, 2020, 8:16 am ]
Post subject:  Re: Remove URL, but not the anchor text.

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

Author:  Freddy [ February 8th, 2020, 8:59 am ]
Post subject:  Re: Remove URL, but not the anchor text.

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.

Author:  flaiho [ February 8th, 2020, 9:27 am ]
Post subject:  Re: Remove URL, but not the anchor text.

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

Author:  Freddy [ February 8th, 2020, 9:31 am ]
Post subject:  Re: Remove URL, but not the anchor text.

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


Replace with:
Code:
$1


Enable regex search.

Author:  flaiho [ February 9th, 2020, 3:30 am ]
Post subject:  Re: Remove URL, but not the anchor text.

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

Author:  Freddy [ February 9th, 2020, 8:58 am ]
Post subject:  Re: Remove URL, but not the anchor text.

Search for:
Code:
\[img\].+?\[/img\]


Replace with:
Code:
(leave empty)


Enable regex search.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/