C # code for Ubb parsing using regular expressions

Source: Internet
Author: User
Document directory
  • Title 3
  • Unordered list
  • Ordered list

The parsed code can be verified by XHTML 1.0 STRICT;
Includes titles, links, fonts, alignment, images, references, lists, and other functions.
Ubb.ReadMe.htm UBB code description Title <dl> <dt> [h1] Title 1 [/h1] </dt> <dd> Title 1 </dd> <dt> [h2] Title 2 [/h2] </dt> <dd> Title 2 </dd> <dt> [h1] Title 3 [/h1] </dt> <dd> Title 3 </ dd> <dt> [h4] Title 4 [/h4] </dt> <dd> Title 4 </dd> <dt> [h5] Title 5 [/h5] </dt> <dd> Title 5 </dd> <dt> [h6] Title 6 [/h6] </dt> <dd> Title 6 </dd> </dl> link <dl> <dt> [url] www.unibetter.com [/url] </dt> <dd> unibetter.com </dd> <dt> [url] http://www.unibetter.com [/url] </dt> <dd> http://www.unibetter.com </dd> <dt> [url = http://www.unibetter.com] unibetter College Forum [/url] </dt> <dd> unibetter college Forum </dd> <dt> [email] none@none.com [/email] </dt> <dd> none@none.com </dd> </dl> font size <dl> <dt> [size = xx-small] Text size [/size] </dt> <dd> text size </dd> <dt> [size = x-small] Text size [/size] </dt> <dd> text size </dd> <dt> [size = small] Text size [/size] </dt> <dd> text size </dd> <dt> [size = medium] Text size [/size] </dt> <dd> text size </dd> <dt> [size = large] Text size [/size] </dt> <dd> text size </dd> <dt> [size = x-large] Text size [/size] </dt> <dd> text size </dd> <dt> [size = x X-large] Text size [/size] </dt> <dd> text size </dd> </dl> font format <dl> <dt> [font =] text font [/font] </dt> <dd> text font </dd> <dt> [color = red] text color [/color] </dt> <dd> text color </dd> <dt> [color = # 0000ff] text color [/color] </dt> <dd> text color </dd> <dt> [B] bold Chinese [/B] </dt> <dd> <strong> bold Chinese </strong> </dd> <dt> [I] italic [/I] </dt> <dd> <I> italic </I> </dd> <dt> [u] underline [/u] </dt> <dd> underline </dd> </dl> alignment <dl> <dt> [left] left alignment [/left] </dt> <dd> left alignment </dd> <dt> [right] right alignment [/right] </dt> <dd> right-aligned </dd> <dt> [cente R] Right-aligned [/center] </dt> <dd> center </dd> </dl> image <dl> <dt> [hr] </dt> <dd> <pr/> </dd> <dt> [img] http://www.w3.org/icons/valid-xhtml10#/img] </dt> <dd> </dd> <dt> [img = 176x62] Forward </dt> <dd> </dl> reference <dl> <dt> [quote] Chairman Mao said: all the reactionary factions are paper tigers! [/Quote] </dt> <dd> <blockquote> the old man of Chairman Mao said: All the reactionary factions are paper tigers! </Blockquote> </dd> </dl> unordered list <p> [list] <br/> [*] Apple <br/> [*] bananas <br/> [*] peach <br/> [/list] </p> <ul> <li> Apple </li> <li> banana </li> <li> peach </li> </ul> ordered list <p> [list = 1] <br/> [*] Open the refrigerator door <br/> [*] Drive the elephant into the refrigerator <br /> [*] Close the refrigerator door <br/> [/list] </p> <ol style = "list-style: decimal; "> <li> open the refrigerator door </li> <li> drive the elephant into the refrigerator </li> <li> close the refrigerator door </li> </ol> <p> [list = I] <br/> [*] Open the refrigerator door <br/> [*] Drive the elephant into the refrigerator <br/> [*] Close the refrigerator door <br/> [/list] </p> <ol style = "list-style: lower-roman; "> <li> open the refrigerator door </li> <li> drive the elephant into the refrigerator </li> <li> close the refrigerator door </li> </ol> <p> [list = I] <br/> [*] Open the refrigerator door <br/> [*] Drive the elephant into the refrigerator <br/> [*] Close the refrigerator door <br/> [/list] </p> <ol style = "list-style: upper-roman; "> <li> open the refrigerator door </li> <li> drive the elephant into the refrigerator </li> <li> close the refrigerator door </li> </ol> <p> [list = a] <br/> [*] Open the refrigerator door <br/> [*] Drive the elephant into the refrigerator <br/> [*] Close the refrigerator door <br/> [/list] </p> <ol style = "list-style: lower-alpha; "> <li> open the refrigerator door </li> <li> drive the elephant into the refrigerator </li> <li> close the refrigerator door </li> </ol> <p> [list = A] <br/> [*] Open the refrigerator door <br/> [*] Drive the elephant into the refrigerator <br/> [*] Close the refrigerator door <br/> [/list] </p> <ol style = "list-style: upper-alpha; "> <li> open the refrigerator door </li> <li> drive the elephant into the refrigerator </li> <li> close the refrigerator door </li> </ol> <p>

[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.