It is currently April 27th, 2024, 7:50 am



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 61, 62, 63, 64, 65, 66, 67 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: July 24th, 2021, 7:46 am 
Site Admin
User avatar

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


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 16th, 2021, 2:32 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
Input
Code:
Death.in.the.Bayou.The.Jennings.8.S01E01.A.Town.Divided.1080p.AMZN.WEB-DL.DD+2.0.H.264-Cinefeel.mkv ~ 5.282 GiB
Death.in.the.Bayou.The.Jennings.8.S01E02E03.The.Devil's.Playground.1080p.AMZN.WEB-DL.DD+2.0.H.264-Cinefeel.mkv ~ 5.360 GiB


Output
Code:
Death.in.the.Bayou.The.Jennings.8.S01E01.1080p.AMZN.WEB-DL.DD+2.0.H.264-Cinefeel.mkv ~ 5.282 GiB
Death.in.the.Bayou.The.Jennings.8.S01E02E03.1080p.AMZN.WEB-DL.DD+2.0.H.264-Cinefeel.mkv ~ 5.360 GiB


there could be MiB as file size.

Code:
710.8 MiB


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 16th, 2021, 7:30 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12645
Location: Earth
Search for:
Code:
(?i)(S[0-9]+E[0-9]+).+?(1080p|720p)


Replace with:
Code:
$1.$2


Enable regex search.

But I would suggest leaving the episode titles, much better for SEO (more people will find your posts).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 18th, 2021, 12:29 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
warez seo is dead from long time ago. thank you for the replacement. here is another one

input
Code:
[img]https://anydomain.com/f6/7e/mfoDkfpd_o.jpg[/img]


output
Code:
[img]anydomain.com/f6/7e/mfoDkfpd_o.jpg[/img]



for normal link i able to make using following one. but i want to use [img]and[/img]. regex will work only if there is [img] bbcode
Code:
https:?:\/\/(.+)(.+\.(jpg|png|jpeg|gif))
$1$2


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 18th, 2021, 12:41 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12645
Location: Earth
Quote:
warez seo is dead from long time ago.


It's not dead. Forums have their own search. Having the title will help more people to find your post. Google always will be better in finding it.

In your new example you just removed "https://", are you sure that's correct? It won't work without https:// at all. The image won't be displayed.

If you sure that's correct, then just surround the search which you have with img tags:
Code:
\[img\]YOUR_SEARCH\[/img\]


Add them in replace with as well (without escaping backslashes):

Code:
[img]$1$2[/img]


Only your search is a bit incorrect it should be like this:
Code:
\[img\]https?://(.+?)\[/img\]


Replace with:
Code:
[img]$1[/img]

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 24th, 2021, 10:04 am 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
ITs possible do this?

After
Code:
[b]ONETITLE[url]
URL1
[/url][/b]

[b]ANOTHERTITLE[url]
URL2
[/url][/b]



Before
Code:
[b]ONETITLE
[code]URL1[/code]
[/b]

[b]ANOTHERTITLE
[code]URL2[/code]
[/b]



Because i simply tried to REPLACE tag URL with tag CODE

but the RETURN or GO to HEAD insert me the tag CODE out of the Link so i need make that, could be possible ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 24th, 2021, 6:39 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12645
Location: Earth
Are you sure the URL tags are in separate lines as you wrote? Not in single line?

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 25th, 2021, 8:18 am 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
Freddy wrote:
Are you sure the URL tags are in separate lines as you wrote? Not in single line?


yes bro, its all correct how i wrote


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 25th, 2021, 3:14 pm 
Site Admin
User avatar

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


Replace with:
Code:
$1[code]$2[/code]$3


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 25th, 2021, 5:16 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
great bro, perfect


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 29th, 2021, 7:03 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
Hey Freddy
I searched the forum but I could find the replacment
Before:
Code:
https://1fichier.com/?kooxn7gjq5yjvbmtjh8w/Holiday.Affair.1949.RESTORED.BDRip.x264-ORBS.rar

After
Code:
https://1fichier.com/?kooxn7gjq5yjvbmtjh8w&af=111111/Holiday.Affair.1949.RESTORED.BDRip.x264-ORBS.rar


I need to put &af=111111 before filename and last /

Thank You.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 29th, 2021, 7:08 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12645
Location: Earth
Search for:
Code:
(https?://1fichier.com/.+?)/


Replace with:
Code:
$1&af=111111/


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 29th, 2021, 7:13 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
Code:
(https://1fichier\.com/\?[A-Za-z0-9].+)(/)(.+)
replace with
$1&af=111111/$3


Hmm I've cooked something like this:
Is it good? it won't collide with anything else?

Edit:
I see your already replied. Thank You very much :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 29th, 2021, 7:22 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12645
Location: Earth
Yours is fine too. Just a bit more specific and using too many groups I would say, you could definitely avoid the second grouping with just backslash. And third as well (as I did not use it, just doesn't matter what's at the end there).

More groups = more memory used usually. Though it probably won't matter in this case since it's so simple.

No problem.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 29th, 2021, 7:25 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
Thank You for your reply:

What flavor of regex it is? I'm asking because I see you don't have to escape some special characters in your regex and some of the patters I googled didn't work with your engine...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 61, 62, 63, 64, 65, 66, 67 ... 74  Next

Who is online

Users browsing this forum: No registered users and 24 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:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC