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(.*?)\](.*?)\[\/
chr(163),
// chr(169),
// 'chr(\1)');
return preg_replace($search, $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
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