> 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
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
'',
// '');
// '>',
// ' ',
// chr(161),
// chr(162),
// chr(163),
// chr(169),
// 'chr(\1)');
return preg_replace($searc
nevermind, I got it fixed. Just had to rearrange it. it was sensing the i in
img as italic so if you put it first it would work.
- Original Message -
From: "Liber" <[EMAIL PROTECTED]>
To: "'Nathan Heaps'" <[EMAIL PROTECTED]>; "'John Hic
Ok, scratch that, new problem. what can I replace (.*?) with in order for
php to recognise a multi-line quote/bold/italic/code/whatever?
- Original Message -
From: "Liber" <[EMAIL PROTECTED]>
To: "'Nathan Heaps'" <[EMAIL PROTECTED]>; &quo
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