Jump to content

BBCode Parse


burhankhan

Recommended Posts

Hi:

 

I have string like this:

[ quote ]
    [ quote ]
          [ quote ]
                [quote ] here is data DDDDDDDDD[ / quote ]
                this is data CCCCCCCCCCC
           [ / quote ]
          this is data BBBBBBBBBB
     [ / quote ]
this is data AAAAAAAAAAAA
[ / quote ]

 

I want some text processing, so that i can get only top [ quote ] and its data. And remove remaining data.

 

For example output should be :

 

[ quote ]
this is data AAAAAAAAAAAA
[ / quote ]

 

I have applied some preg_repalce but no success.

 

Please help me!

Link to comment
https://forums.phpfreaks.com/topic/58979-bbcode-parse/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.