1
Answer

Regex

Marco

Marco

15y
2.2k
1
Hello,
 new to Regex I need an hint how the special characters work; I must split a string that contains an XML file splitting by
<, >, /> and =
Moreover inside the xml I have some lines like this:
    <output mess="Array<Token>"/>
but in that case I don't need to split it; every thing inside the " " mustn't be split
I wrote this:
        static public String[] tokenize(string filetext) {
            Regex  reg = new Regex(@"<");

            return (reg.Split(filetext));           
        }

But it only return the original string without '<'. It's not what I need but maybe you can suggest me what I'm looking for.

thanks,
Answers (1)