What is the right method for parsing a blog post?

Posted by Zedwal on Stack Overflow See other posts from Stack Overflow or by Zedwal
Published on 2011-01-17T08:47:03Z Indexed on 2011/01/17 8:53 UTC
Read the original article Hit count: 201

Filed under:
|

Hi guys, Need a guide line ....
I am trying to write a personal blog. What is the standard structure for for input for the post. I am trying the format like:

This is the simple text
And I am [b] bold text[/b].
This is the code part:
[code lang=java]
public static void main (String args[]) {
   System.out.println("Hello World!");
}
[/code]

Is this the right way to store post in the database?

And What is the right method to parse this kind of post? Shall I use regular expression to parse this or there is another standard for this. If the above mentioned format is not the right way for storage, then what it could be?

Thanks

© Stack Overflow or respective owner

Related posts about regex

Related posts about parsing