It is currently July 5th, 2020, 3:07 am



Post new topic Reply to topic  [ 852 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 57  Next
Author Message
 Post subject: Re: Help me
PostPosted: December 17th, 2011, 11:33 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10497
Location: Earth
Search string: \[url=(http://www\.uploadic.*?)\](.*?)\[/url\]
Replace with: <a href="$1" target="_blank">$2</a>

Mark the "Regex search" box.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacement help.
PostPosted: December 17th, 2011, 5:23 pm 

Joined: December 12th, 2011, 8:08 pm
Posts: 2
thank you Freddy


Top
 Profile  
Reply with quote  
 Post subject: I need help with regex
PostPosted: December 18th, 2011, 11:08 pm 

Joined: December 18th, 2011, 11:02 pm
Posts: 2
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...


Top
 Profile  
Reply with quote  
 Post subject: Re: I need help with regex
PostPosted: December 19th, 2011, 1:34 pm 

Joined: May 12th, 2011, 11:34 pm
Posts: 71
Try this:
Code:
(?<=\[spoiler\]).*(?=\[\/spoiler\])


Or if you need delete all include tag [spoiler]:
Code:
\[spoiler\].*\[\/spoiler\]


Top
 Profile  
Reply with quote  
 Post subject: Re: How to replace Space in subject
PostPosted: December 24th, 2011, 6:49 am 

Joined: October 31st, 2011, 10:52 pm
Posts: 12
bump?


Top
 Profile  
Reply with quote  
 Post subject: Re: How to replace Space in subject
PostPosted: December 24th, 2011, 7:40 pm 

Joined: May 5th, 2011, 9:45 am
Posts: 95
also interesting.


Top
 Profile  
Reply with quote  
 Post subject: Re: How to replace Space in subject
PostPosted: December 24th, 2011, 9:03 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10497
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: I need help with regex
PostPosted: December 24th, 2011, 9:30 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10497
Location: Earth
There is the exact same example in the faq: http://poster.freddy.lt/faq.php , I just used [remove] [/remove] as a demo.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: I need help with regex
PostPosted: December 25th, 2011, 5:16 pm 

Joined: September 19th, 2011, 12:30 am
Posts: 275
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.

Image

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.

Image

Release Name: Tap! The iPhone and iPad Magazine
Country: UK (English)
Format: PDF
Date: January 2012
Pages: 132 pages
Size: 131 Mb


Image

http://www.filejungle.com/f/967erf


Image

http://www.filesonic.com/file/YDu58hH


Image

http://www.fileserve.com/file/cF3B9vF


Image

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).


Last edited by Volger on February 8th, 2012, 9:28 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Raplacements question
PostPosted: January 5th, 2012, 7:10 pm 

Joined: May 29th, 2011, 10:47 pm
Posts: 289
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*


Top
 Profile  
Reply with quote  
 Post subject: Re: Raplacements question
PostPosted: January 5th, 2012, 10:18 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10497
Location: Earth
How do you want exactly it to look?

Please give the example for "before" and "after".

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Raplacements question
PostPosted: January 6th, 2012, 3:52 pm 

Joined: May 29th, 2011, 10:47 pm
Posts: 289
I want to post without red color letters. Only with [IMG] tag and remove [URL]


Top
 Profile  
Reply with quote  
 Post subject: Re: Raplacements question
PostPosted: January 7th, 2012, 9:52 pm 

Joined: May 29th, 2011, 10:47 pm
Posts: 289
Before:

[url =http://www.imagebam.com/.....68164700][img ]http://thumbnails54.imagebam.com/.....68164700[/img][/url]

After:

[img ]http://thumbnails54.imagebam.com/.....68164700[/img]


Top
 Profile  
Reply with quote  
 Post subject: Re: Raplacements question
PostPosted: January 8th, 2012, 1:14 pm 

Joined: March 18th, 2011, 1:21 am
Posts: 26
replacements

[url =
[/url]

banned host

imagebam.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Raplacements question
PostPosted: January 8th, 2012, 1:26 pm 

Joined: May 29th, 2011, 10:47 pm
Posts: 289
It's imposible. If I ban imagebam, no image will be showed. I only want to post without URL! : (


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 852 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 57  Next

Who is online

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