split string problem with cute editor

Last post 01-23-2008, 1:35 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-19-2008, 4:44 AM 36424

    split string problem with cute editor

    hello sir,

    please help me out for a asp.net(c#) problem.
    actually i want to make an online test series.
    for that i want to paste each question with options into cute editor.
    each question has 4 options(named: a. , b. , c. , d. ).
    like this:
    Question:
     
    f is defined on [-1, 1] by 

    a.        f is continuous if and only if a > 0

    b.       f¢ (0) exists if and only if a > 1

    c.        f¢ is bounded if and only if a ³ 1 + c

    d.       none of these

    a. , b. , c. ,d. are the options

    i want to split these above question as:

     
    f is defined on [-1, 1] by 
    f is continuous if and only if a > 0
    f
    ¢(0) exists if and only if a > 1
    f
    ¢ is bounded if and only if a ³ 1 + c
    none of these

    i think  you clearly understand my problem.
    please help me out.


    my code is:

    using System.Text.RegularExpressions;

    string[] abc = Regex.Split(finalString, "( a. | b. |c. |d. )");

    foreach (string match in abc)
    {

    string FinalSplitString= match;

    }
    where final string is the string which i mention above.

     

    please help me.

    thanking you.

    with regards,
     
    Avanish yadav
  •  01-23-2008, 1:35 AM 36474 in reply to 36424

    Re: split string problem with cute editor

    Avanish,
     
    This doesn't look like it's an editor issue or editor feature request.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML