It is currently March 28th, 2024, 2:05 pm



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 62, 63, 64, 65, 66, 67, 68 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: August 29th, 2021, 7:37 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
You need to escape dot. I just didn't because it won't matter there (. matches any character anyway).

It uses Java regular expressions.

It's mentioned in this link and there are some useful links at the end to some resources: http://poster.themasoftware.com/faq.php?expand=faq204

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 1st, 2021, 9:40 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
INPUT
Code:
Ipod & Itunes For Dummies (Isbn - 0470174749)

Code:
Baby Massage For Dummies (Isbn - 0764578413)


Output
Code:
Ipod & Itunes For Dummies

Code:
Baby Massage For Dummies


need in regex


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 2nd, 2021, 3:43 am 
User avatar

Joined: March 15th, 2011, 5:44 pm
Posts: 119
ad-team wrote:
INPUT
Code:
Ipod & Itunes For Dummies (Isbn - 0470174749)

Code:
Baby Massage For Dummies (Isbn - 0764578413)


Output
Code:
Ipod & Itunes For Dummies

Code:
Baby Massage For Dummies


need in regex


https://regex101.com/r/mMVlcs/1


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 2nd, 2021, 5:59 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
stefan-te answer is fine. You can use that.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 3rd, 2021, 7:56 pm 

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


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 27th, 2021, 12:28 pm 

Joined: January 23rd, 2018, 6:05 pm
Posts: 13
Hey, is there a way to add text above links and add spoiler for 1 forum only? single topic

before
Code:
https://k2s.cc/file/0a7

https://rapidgator.net/file/66e

after
Code:
Keep2share Rapidgator
[spoiler]https://k2s.cc/file/0a7

https://rapidgator.net/file/66e[/spoiler]


something like that

EDIT:

Also some sections require to choose "Prefix" like BDSM Bondage etc
Can I set it somewhere just for 1 forum?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 27th, 2021, 1:40 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
For spoiler: setup as described here, it will be added automatically for only one forum where you choose that option (choose surround links with custom tag - enter "spoiler" -> press "Update"). Don't forget to all the file hosts as described in FAQ: http://poster.themasoftware.com/faq.php?expand=faq104

For prefix: setup the prefix only for one forum and it will be used only for that forum: http://poster.themasoftware.com/faq.php?expand=faq206

Prefixes are only used if you have them setup. If not - it will be just ignored for all others.

To add text add this replacement:
Search for:
Code:
(?s)https?://k2s.cc.+


Replace with:
Code:
Keep2share Rapidgator\n$0


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 27th, 2021, 1:59 pm 

Joined: January 23rd, 2018, 6:05 pm
Posts: 13
How can I setup the Prefixs? Where to look for prefix ID and Icon ID?

EDIT:

Oh I reply too fast didnt notice ur prefix link line, thanks again mate


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 27th, 2021, 2:12 pm 

Joined: January 23rd, 2018, 6:05 pm
Posts: 13
Hmm The spoiler tag works but not like I thought

I want em under one spoiler tag
Code:
[spoiler]https://k2s.cc/file/0a7

https://rapidgator.net/file/66e[/spoiler]


not separated

after using "surround links with custom tag" it looks like that
Code:
[spoiler]https://k2s.cc/file/0a7[/spoiler]

[spoiler]https://rapidgator.net/file/66e[/spoiler]


Can we do both links under 1 spoiler tag?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 27th, 2021, 9:38 pm 
User avatar

Joined: March 15th, 2011, 5:44 pm
Posts: 119
^if its only for one specific forum you can do it like this..

https://regex101.com/r/1NHx8O/1/


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 27th, 2021, 10:12 pm 

Joined: January 23rd, 2018, 6:05 pm
Posts: 13
Thanks, but doesnt work

I did copy/paste
Search for:
\[\/spoiler\]\n\n\[spoiler\]

and Replace with:
\n\n

and Regex on

same as before
Code:
[spoiler]https://k2s.cc/file/0a7[/spoiler]

[spoiler]https://rapidgator.net/file/66e[/spoiler]


EDIT:

I replaced the code and this is what i get
Search for: \n\n
Replace with:
\[\spoiler\]\n\n\[/spoiler\]

Code:
[spoiler]

[/spoiler]https://k2s.cc/file[spoiler]

[/spoiler]https://rapidgator.net/file/.mp4.html[spoiler]

[/spoiler]


EDIT:
Actually it doesnt work at all, when made post on forum it taged ever line into spoiler


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 28th, 2021, 4:28 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
That's wrong.

Select option to "Surround links with nothing" first (press "Update" button).

Then add this replacement:

Search for:
Code:
(?s)https?://k2s.+https?://rapidgator.+?(\n|$)


Replace with:
Code:
[spoiler]$0[/spoiler]


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 28th, 2021, 7:43 am 

Joined: January 23rd, 2018, 6:05 pm
Posts: 13
you are the man, appreciate your effort thanks mate


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 28th, 2021, 11:39 am 

Joined: January 23rd, 2018, 6:05 pm
Posts: 13
I think that last question and Im done with settings, wonder if there is replacement for sucha case like folder link for 1 forum. Inside folder is always 1 file, is it possible to extract the file and post in megathread insted of folder link

Just an example

Folder
https://k2s.cc/file/1aa83cfe37/_480

File inside folder
https://k2s.cc/file/6c5c74ac3/_480.mp4

If not, I will just skip on post there, thanks in advance


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 28th, 2021, 11:54 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
No, that's not really possible.

You could do it only with some custom script probably.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


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

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