It is currently March 28th, 2024, 5:58 pm



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 49, 50, 51, 52, 53, 54, 55 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: November 15th, 2019, 10:35 am 

Joined: April 27th, 2019, 10:20 am
Posts: 14
Hi Freddy, tell me how to make such an option so that when placing it automatically corrects
Input
Code:
[url=https://www.link.com/5d8135d94b6eb]Download hitfile.net[/url]


Output
Code:
[b]Download hitfile.net[/b]
[code]https://www.link.com/5d8135d94b6eb[/code]


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 15th, 2019, 10:41 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Add replacement in "CONFIG" -> "Replacements" (affects all forums) or in "FORUMS" -> select needed forum -> "Replacements" (for specific site only).

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


Replace with:
Code:
[b]$2[/b]\n[code]$1[/code]


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 16th, 2019, 12:39 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
input
Code:
Its Always Sunny in Philadelphia S14E08 720p 1080p AMZN WEB-DL DDP5.1 H.264-NTb


output
Code:
test


i tried, nothing worked :?
Code:
(Its.Always.Sunny.In.Philadelphia)
^(Its.Always.Sunny.In.Philadelphia)
^(Its.Always.Sunny.In.Philadelphia)+ S.*


Last edited by Crackpot on November 16th, 2019, 1:14 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 16th, 2019, 1:00 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Your "in" is lowercase, but you have it uppercase in your regex.

Search for:
Code:
^Its.Always.Sunny.in.Philadelphia.+


Replace with:
Code:
Test


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 18th, 2019, 8:12 am 

Joined: April 27th, 2019, 10:20 am
Posts: 14
Thanks Freddy for the previous help.

Tell me how you can add the name automatically so that it would fill itself


Attachments:
01 35.jpg
01 35.jpg [ 22.53 KiB | Viewed 3611 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 18th, 2019, 8:37 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Search for:
Code:
^\[center\]


Replace with:
Code:
$0\n<postSubject>\n


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 1st, 2019, 2:23 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
Hello

before
Code:
[AnonimOT] Star Twinkle Precure - 38 [720p][E54F2D94]


after

Code:
Star Twinkle Precure - 38

thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 1st, 2019, 2:56 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Search for:
Code:
\s*\[.+?\]\s*


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 10th, 2019, 4:55 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
input
Code:
https://images2.imgbox.com/52/99/xc7QAdEM_o.jpg/abc.jpg
https://images2.imgbox.com/52/99/xcxQAdEM_o.png/abc.png


output
Code:
https://images2.imgbox.com/52/99/xc7QAdEM_o.jpg
https://images2.imgbox.com/52/99/xcxQAdEM_o.jpg


===========
tp has this feature but i needed it for local pc use. can we add text at the first and and the end

output
Code:
test1
test2
test3


output
Code:
firstline text add
test1
test2
test3
last line text add

thanks in advanced :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 11th, 2019, 1:40 am 
User avatar

Joined: March 15th, 2011, 5:44 pm
Posts: 119
1:
Code:
(https?\:\/\/images2.imgbox.com.*)\/.*

Replace with
Code:
$1




2.
If its for TP or TC
Code:
(?s).+

replace
Code:
test\n$0\ntest


Code:
https://regex101.com/r/poW8Xm/1


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 11th, 2019, 9:31 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
For the first and last line you could do with two searches as well:

Search for:
Code:
^


Replace with:
Code:
firstline text add\n


Enable regex search.

Search for:
Code:
$


Replace with:
Code:
\nlast line text add


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 11th, 2019, 3:17 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
both worked, thanks stefan-te and Freddy

imgbox worked but if there is [/img] tag at the end it giving output like this:

input
Code:
[img]https://images2.imgbox.com/f3/64/K7FdPfPi_o.jpg/Danger.Close.The.Battle.of.Long.Tan.2019.1080p.BluRay.x264-PFa_s.jpg[/img]


output
Code:
[img]https://images2.imgbox.com/f3/64/K7FdPfPi_o.jpg/Danger.Close.The.Battle.of.Long.Tan.2019.1080p.BluRay.x264-PFa_s.jpg[


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 12th, 2019, 4:39 am 
User avatar

Joined: March 15th, 2011, 5:44 pm
Posts: 119
@Crackpot, regex is sort of easy. you just need to start testing, Lol.

Update this, (https?\:\/\/images2.imgbox.com.*)\/.*
to
search
Code:
(https?\:\/\/images2.imgbox.com.*\/.*\.[a-z]{3})\/.*\.[a-z]{3}

Replace
Code:
$1

Enable regex search :lol:


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 12th, 2019, 5:59 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
thank you, works perfect :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: December 14th, 2019, 11:24 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
Input
Code:
The.Listener.S05E01.The.Wrong.Man.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES
The.Listener.S05E04E05.The.Wrong.Man.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES
The.Listener.S05E01.REPACK.The.Wrong.Man.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES
The.Listener.S05E04E05.REPACK.The.Wrong.Man.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES


OUTPUT
Code:
The.Listener.S05E01.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES
The.Listener.S05E04E05.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES
The.Listener.S05E01.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES
The.Listener.S05E04E05.1080p.AMZN.WEB-DL.DDP2.0.H.264-TEPES


i don't know regex replace, i guess here need to delete
Code:
anyydigit. to till .1


thanks in advanced


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 49, 50, 51, 52, 53, 54, 55 ... 74  Next

Who is online

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