By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,826 Members | 815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,826 IT Pros & Developers. It's quick & easy.

How to write BBS format conversion code?

P: n/a

I would like to write a simple forum for my site, which
enables some formating, like [b], [i], [u] and some other
BBS format code.

For example,
the user inputs this string in a multiline textbox, as
the body of his/her post,

[]Hello world[a]

The application will translate it to HTML code when his/
her post is shown up in the forum.

<a href=""><b>Hello <i>world</i></b></a>

Maybe I should use Regular Express to perform several
Replace methods on the string. But I am quite afraid of
the performance, as I were to support more and more
formatting codes besides the [a], [b], [i]...

Anybody have some opinions about how to write such kind of
format translation codes efficiently? Or where else I can
find some existing codes to begin with?

W. Jordan
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.