split string problem with cute editor

  •  01-19-2008, 4:44 AM

    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
View Complete Thread