themaPoster http://poster.themasoftware.com/forum/ |
|
Forum replacements problems. http://poster.themasoftware.com/forum/viewtopic.php?f=4&t=634 |
Page 2 of 74 |
Author: | soulmy [ December 17th, 2011, 5:23 pm ] |
Post subject: | Re: Replacement help. |
thank you Freddy |
Author: | squallpolska [ December 18th, 2011, 11:08 pm ] |
Post subject: | I need help with regex |
Hi, I need help. I have such a text post: Code: xxxxxxxxxx [spoiler]aaaaa xxxxccccc ccccclll [/spoiler] sssxxxxx And I want the content between the "[spoiler][/spoiler] disappeared. What do I write a regex? I can do it in php, but I want to work in a poster. In php is it this code: Code: $deleted_spoilers = preg_replace("#(?:\r\n)?\[spoiler](.*?)\[\/spoiler](?:\r\n)?#sm", "", $content); Please help me... |
Author: | Shapiro [ December 19th, 2011, 1:34 pm ] |
Post subject: | Re: I need help with regex |
Try this: Code: (?<=\[spoiler\]).*(?=\[\/spoiler\]) Or if you need delete all include tag [spoiler]: Code: \[spoiler\].*\[\/spoiler\]
|
Author: | GameOfThrones [ December 24th, 2011, 6:49 am ] |
Post subject: | Re: How to replace Space in subject |
bump? |
Author: | Daemon [ December 24th, 2011, 7:40 pm ] |
Post subject: | Re: How to replace Space in subject |
also interesting. |
Author: | Freddy [ December 24th, 2011, 9:03 pm ] |
Post subject: | Re: How to replace Space in subject |
Sorry for such a late response. It's actually quite simple, add this in forum's subject replacements: Search string: \s-\s Replace with: [enter one space] Mark the "Regex seach" box. |
Author: | Freddy [ December 24th, 2011, 9:30 pm ] |
Post subject: | Re: I need help with regex |
There is the exact same example in the faq: http://poster.freddy.lt/faq.php , I just used [remove] [/remove] as a demo. |
Author: | Volger [ December 25th, 2011, 5:16 pm ] |
Post subject: | Re: I need help with regex |
Me too, i don' understand the function regex, what is the difference between regex and the normal replacements ? I want to add my banners for the filehosts (Fileserve,Filesonic,Uploaded,UploadStation...) before the links. It is possible with the function regex. For example : Without the banners of filehosts : Tap! The iPhone and iPad Magazine – January 2012 Tap! The iPhone and iPad Magazine will help you get the most from your iPhone, iPad or iPod touch. Useful how-tos and handy tips guide you expertly through. Release Name: Tap! The iPhone and iPad Magazine Country: UK (English) Format: PDF Date: January 2012 Pages: 132 pages Size: 131 Mb http://www.filejungle.com/f/967erf http://www.filesonic.com/file/YDu58hH http://www.fileserve.com/file/cF3B9vF http://ul.to/355pmgh0/7936736.pdf With the banners of filehosts : Tap! The iPhone and iPad Magazine – January 2012 Tap! The iPhone and iPad Magazine will help you get the most from your iPhone, iPad or iPod touch. Useful how-tos and handy tips guide you expertly through. Release Name: Tap! The iPhone and iPad Magazine Country: UK (English) Format: PDF Date: January 2012 Pages: 132 pages Size: 131 Mb http://www.filejungle.com/f/967erf http://www.filesonic.com/file/YDu58hH http://www.fileserve.com/file/cF3B9vF http://ul.to/355pmgh0/7936736.pdf Freddy, can you show me how to use the function regex for add the banners of filehosts before the link(s). |
Author: | melapelatodo [ January 5th, 2012, 7:10 pm ] |
Post subject: | Raplacements question |
I've read the FAQ but I can't post images without [url=............]............[/url] [url =http://www.imagebam.com/.....68164700][img ]http://thumbnails54.imagebam.com/.....68164700[/img][/url] [url =http://www.imagebam.com/.....68164700][img ]http://thumbnails64.imagebam.com/.....68164700[/img][/url] How to do this in ONLY ONE forum??? I've read about (.*?\)).* replacement but I don't undestand how I must put it... EDIT: I've tried with this, but didn't run! \[URL=http://(www\.)?imagebam\.com/.+?\]\[/URL\]\s* |
Author: | Freddy [ January 5th, 2012, 10:18 pm ] |
Post subject: | Re: Raplacements question |
How do you want exactly it to look? Please give the example for "before" and "after". |
Author: | melapelatodo [ January 6th, 2012, 3:52 pm ] |
Post subject: | Re: Raplacements question |
I want to post without red color letters. Only with [IMG] tag and remove [URL] |
Author: | melapelatodo [ January 7th, 2012, 9:52 pm ] |
Post subject: | Re: Raplacements question |
Before: [url =http://www.imagebam.com/.....68164700][img ]http://thumbnails54.imagebam.com/.....68164700[/img][/url] After: [img ]http://thumbnails54.imagebam.com/.....68164700[/img] |
Author: | Shady [ January 8th, 2012, 1:14 pm ] |
Post subject: | Re: Raplacements question |
replacements [url = [/url] banned host imagebam.com |
Author: | melapelatodo [ January 8th, 2012, 1:26 pm ] |
Post subject: | Re: Raplacements question |
It's imposible. If I ban imagebam, no image will be showed. I only want to post without URL! : ( |
Author: | Shady [ January 8th, 2012, 2:30 pm ] |
Post subject: | Re: Raplacements question |
Try it like I said here : viewforum.php?f=17 before speak that is impossible !!! |
Page 2 of 74 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |