Oct 22, 2007, 2:51 PM
Post #5 of 7
i did in the first post :) -- its BB codes. basically chage TAG to QUOTE in my last post (this board renders it, so i can't post it here) - that is real example, and "[description]" can be any text, i use "
", but it could be "*qote*", "QUOTE", "=anytext=", ... whatever.
i'm listing latest posts (subject + first 200 chars) from my phpBB forum on my home page, and strip BB tags from it, but when people replying to a quote i want to indicate that there is a quote. of course people keep hitting "quote" button creating nested quotes, some of them 4-5 levels deep. i don't what to just strip quote tags and leave quote's text cause first 200 chars will the the text of the quote almost always, and on the from page i'll have the list of the same replys :-/
obviously this isn't very important project :) but i'm just very curious cause I can't find a solution with regex (im not very good at it too :)). i could probably do something without regex, with loops, counting levels, but I can't believe its not possible with regex..
[ noobie alert ] WinXP :: Xitami Webserver :: Active Perl 5.8.6