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
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
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
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(.*?)\](.*?)\[\/
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(.*?)\](.*?)\[\/
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
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:
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
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
> 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
10 matches
Mail list logo