Re: [PHP-DB] preg_replace help!

2006-05-04 Thread Nathan Heaps
thanks, its fixed now!!! - Original Message - From: Martin Alterisio To: Nathan Heaps Cc: Liber ; John Hicks ; php-db@lists.php.net Sent: Thursday, May 04, 2006 11:34 AM Subject: Re: [PHP-DB] preg_replace help! 2006/5/4, Martin Alterisio <[EMAIL PROTECTED]>: 2006/5/3, Nathan

Re: [PHP-DB] preg_replace help!

2006-05-04 Thread Martin Alterisio
2006/5/4, Martin Alterisio <[EMAIL PROTECTED]>: 2006/5/3, Nathan Heaps <[EMAIL PROTECTED]>: > Ok, scratch that, new problem. what can I replace (.*?) with in order > for > php to recognise a multi-line quote/bold/italic/code/whatever? By default the "." pattern matches anything except a line

Re: [PHP-DB] preg_replace help!

2006-05-04 Thread Martin Alterisio
2006/5/3, Nathan Heaps <[EMAIL PROTECTED]>: Ok, scratch that, new problem. what can I replace (.*?) with in order for php to recognise a multi-line quote/bold/italic/code/whatever? By default the "." pattern matches anything except a line break you can either use ((?:.|\n)*) or add a modifier

Re: [PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
t;'John Hicks'" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, May 03, 2006 10:17 PM Subject: RE: [PHP-DB] preg_replace help! // "/\[i(.*?)\](.*?)\[\/i(.*?)\]/", // Italics "/\[u(.*?)\](.*?)\[\/u(.*?)\]/", // Underline "/\[img(.*?)\](.*?)\[\/

Re: [PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
ks'" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, May 03, 2006 10:17 PM Subject: RE: [PHP-DB] preg_replace help! // "/\[i(.*?)\](.*?)\[\/i(.*?)\]/", // Italics "/\[u(.*?)\](.*?)\[\/u(.*?)\]/", // Underline "/\[img(.*?)\](.*?)\[\/

RE: [PHP-DB] preg_replace help!

2006-05-03 Thread Liber
ursday, May 04, 2006 8:08 AM To: John Hicks Cc: php-db@lists.php.net Subject: Re: [PHP-DB] preg_replace help! Wait, its a different thing now. You see, I am trying to replace phpbb's bbcode with working html code, but what makes it hard is that phpbb inserts a number after SOME of the bbcod

Re: [PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
h, $replace, $subject); } my problem is that if I un-comment the italic thing, then image doesn't work. any idea on how to fix it? - Original Message - From: "John Hicks" <[EMAIL PROTECTED]> To: "Nathan Heaps" <[EMAIL PROTECTED]> Cc: Sent:

Re: [PHP-DB] preg_replace help!

2006-05-03 Thread John Hicks
Nathan Heaps wrote: I am trying to parse a forum post using php, but it parses it everytime it sees the letter, not the thing in quotes. What letter? What thing in quotes? -J -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
Hey, I need some help. I am trying to parse a forum post using php, but it parses it everytime it sees the letter, not the thing in quotes. Any help? function bbcodereplace($subject){ // $document should contain an HTML document. // This will remove HTML tags, javascript sections // and white spa

[PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
> Hey, I need some help. > I am trying to parse a forum post using php, but it parses it everytime it > sees the letter, not the thing in quotes. Any help? > > function bbcodereplace($subject){ > // $document should contain an HTML document. > // This will remove HTML tags, javascript sections